mirror of
https://github.com/p1neappleXpress/OpenFlux.git
synced 2026-10-02 05:04:39 +08:00
Renames the Go module path from openflux to github.com/p1neappleXpress/OpenFlux and updates every internal import (root module and mobile/), so the packages can be fetched and imported by other Go projects. Regenerated on main after #132, #122 and #125 (the same mechanical rename, imports sorted by gofmt). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
//go:build !darwin && !windows
|
|
|
|
package main
|
|
|
|
import (
|
|
"errors"
|
|
"time"
|
|
|
|
"github.com/p1neappleXpress/OpenFlux/transport"
|
|
)
|
|
|
|
var errTUNUnsupported = errors.New("utun client is only supported on macOS")
|
|
|
|
type TUNClient struct{}
|
|
|
|
func NewTUNClient(trans transport.Transport, mtu int) (*TUNClient, error) {
|
|
return nil, errTUNUnsupported
|
|
}
|
|
|
|
func (c *TUNClient) Name() string { return "" }
|
|
func (c *TUNClient) Gateway() string { return "" }
|
|
func (c *TUNClient) SetupInterface() error { return errTUNUnsupported }
|
|
func (c *TUNClient) ConfigureDefault() error { return errTUNUnsupported }
|
|
func (c *TUNClient) Start() {}
|
|
func (c *TUNClient) Close() error { return nil }
|
|
func (c *TUNClient) SaveDefault() error { return errTUNUnsupported }
|
|
func (c *TUNClient) RestoreDefault() {}
|
|
func (c *TUNClient) purgeStaleHostRoutes() {}
|
|
|
|
type SocketWatcher struct{}
|
|
|
|
func NewSocketWatcher(gateway string, onStable func()) *SocketWatcher {
|
|
return &SocketWatcher{}
|
|
}
|
|
|
|
func (w *SocketWatcher) Start(interval time.Duration) {}
|
|
func (w *SocketWatcher) Stop() {}
|