revert:the name of tun device on mac

This commit is contained in:
Skyxim 2022-04-05 23:04:59 +08:00 committed by GitHub
parent 91e48b707b
commit 4b9edc3b66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ func New(tunConf *config.Tun, dnsConf *config.DNS, tcpIn chan<- C.ConnContext, u
func generateDeviceName() string { func generateDeviceName() string {
switch runtime.GOOS { switch runtime.GOOS {
case "darwin": case "darwin":
return tun.Driver + "://Meta" return tun.Driver + "://utun"
case "windows": case "windows":
return tun.Driver + "://Meta" return tun.Driver + "://Meta"
default: default: