Skip to content

Commit

Permalink
chore: rename tun interface on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cxz66666 committed Oct 29, 2023
1 parent 08448fb commit 52eef56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion stack/tun/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (s *Stack) Run() {
n, _ := s.rvpnConn.Read(buf)

log.DebugPrintf("Recv: read %d bytes", n)
//log.DebugDumpHex(buf[:n])
log.DebugDumpHex(buf[:n])

err := s.endpoint.Write(buf[:n])
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion stack/tun/stack_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewStack(easyConnectClient *client.EasyConnectClient, dnsServer string) (*S
return nil, err
}
ipPrefix, _ := netip.ParsePrefix(s.endpoint.ip.String() + "/8")
tunName := "utun10"
tunName := "utun0"
tunName = tun.CalculateInterfaceName(tunName)
tunOptions := tun.Options{
Name: tunName,
Expand Down

0 comments on commit 52eef56

Please sign in to comment.