diff --git a/stack/tun/stack.go b/stack/tun/stack.go index 7d74bea..2a081a4 100644 --- a/stack/tun/stack.go +++ b/stack/tun/stack.go @@ -66,7 +66,6 @@ func (s *Stack) Run() { return } else { log.Printf("Error occurred while reading from TUN stack: %v", err) - // TODO graceful shutdown panic(err) } } diff --git a/stack/tun/stack_darwin.go b/stack/tun/stack_darwin.go index a748a01..4b70581 100644 --- a/stack/tun/stack_darwin.go +++ b/stack/tun/stack_darwin.go @@ -120,7 +120,7 @@ func NewStack(easyConnectClient *client.EasyConnectClient, dnsHijack bool) (*Sta log.Printf("Interface Name: %s, index %d\n", tunName, netIfce.Index) // We need this dialer to bind to device otherwise packets will not be sent via TUN - // Doesn't work on macos. See https://github.com/Mythologyli/zju-connect/pull/44#issuecomment-1784050022 + // Doesn't work on macOS. See https://github.com/Mythologyli/zju-connect/pull/44#issuecomment-1784050022 s.endpoint.tcpDialer = &net.Dialer{ LocalAddr: &net.TCPAddr{ IP: s.endpoint.ip, @@ -135,7 +135,7 @@ func NewStack(easyConnectClient *client.EasyConnectClient, dnsHijack bool) (*Sta }, } - // Doesn't work on macos. See https://github.com/Mythologyli/zju-connect/pull/44#issuecomment-1784050022 + // Doesn't work on macOS. See https://github.com/Mythologyli/zju-connect/pull/44#issuecomment-1784050022 s.endpoint.udpDialer = &net.Dialer{ LocalAddr: &net.UDPAddr{ IP: s.endpoint.ip,