mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
unix: use net.Dial to avoid interface binding Influence
This commit is contained in:
1 parent
720f12aa0a
commit
27de61a59d
2 files changed
+1
-3
No files matched your search
@@ -27,7 +27,7 @@ func (s *Unix) Addr() string {
|
||||
// Dial connects to the address addr on the network net via the proxy.
|
||||
// NOTE: must be the first dialer in a chain
|
||||
func (s *Unix) Dial(network, addr string) (net.Conn, error) {
|
||||
return s.dialer.Dial("unix", s.addr)
|
||||
return net.Dial("unix", s.addr)
|
||||
}
|
||||
|
||||
// DialUDP connects to the given address via the proxy.
|
||||
|
||||
@@ -123,8 +123,6 @@ func (s *Unix) ServePacket(pc net.PacketConn) {
|
||||
continue
|
||||
}
|
||||
|
||||
log.F("!!! unix ServePacker read from: %s", srcAddr)
|
||||
|
||||
var session *Session
|
||||
sessionKey := srcAddr.String()
|
||||
|
||||
|
||||
Reference in new issue
Block a user