mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
ci: added freebsd version
This commit is contained in:
1 parent
2d16870803
commit
2a7eed7667
11 files changed
+34
-25
No files matched your search
+1
-1
@@ -25,7 +25,7 @@ func NewDirect(intface string, dialTimeout, relayTimeout time.Duration) (*Direct
|
||||
|
||||
if intface != "" {
|
||||
if ip := net.ParseIP(intface); ip != nil {
|
||||
d.ip = net.ParseIP(intface)
|
||||
d.ip = ip
|
||||
} else {
|
||||
iface, err := net.InterfaceByName(intface)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user