pkg/hvsock/hvsock_fallback.go
raw| 1 | // +build !linux,!windows |
| 2 | |
| 3 | package hvsock |
| 4 | |
| 5 | import ( |
| 6 | "fmt" |
| 7 | "net" |
| 8 | "runtime" |
| 9 | ) |
| 10 | |
| 11 | // Supported returns if hvsocks are supported on your platform |
| 12 | func Supported() bool { |
| 13 | return false |
| 14 | } |
| 15 | |
| 16 | func Dial(raddr Addr) (Conn, error) { |
| 17 | return nil, fmt.Errorf("Dial() not implemented on %s", runtime.GOOS) |
| 18 | } |
| 19 | |
| 20 | func Listen(addr Addr) (net.Listener, error) { |
| 21 | return nil, fmt.Errorf("Listen() not implemented on %s", runtime.GOOS) |
| 22 | } |