Files
OpenFlux/tun_other.go
Oleg NovikovandClaude Opus 5.5 96a0f95205 chore: use canonical module path github.com/p1neappleXpress/OpenFlux (#129)
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>
2026-09-29 21:09:36 +03:00

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() {}