mirror of
https://github.com/netbirdio/netbird.git
synced 2026-03-31 06:24:18 -04:00
24 lines
347 B
Go
24 lines
347 B
Go
package configurer
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type noopListener struct{}
|
|
|
|
func (n *noopListener) Accept() (net.Conn, error) {
|
|
return nil, net.ErrClosed
|
|
}
|
|
|
|
func (n *noopListener) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (n *noopListener) Addr() net.Addr {
|
|
return nil
|
|
}
|
|
|
|
func openUAPI(deviceName string) (net.Listener, error) {
|
|
return &noopListener{}, nil
|
|
}
|