Skip to content

Commit

Permalink
chore: fix typos in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Mythologyli committed Nov 14, 2023
1 parent c2504b3 commit f137fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion stack/tun/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
4 changes: 2 additions & 2 deletions stack/tun/stack_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit f137fba

Please sign in to comment.