mirror of
https://github.com/fumiama/water.git
synced 2026-06-09 04:30:26 +08:00
fix if error
This commit is contained in:
@@ -361,7 +361,7 @@ func openDev(config Config) (ifce *Interface, err error) {
|
||||
// TUN
|
||||
var ad *wintun.Adapter
|
||||
if config.InterfaceName == "" {
|
||||
config.InterfaceName = "Water WinTun Interface"
|
||||
config.InterfaceName = "WaterWinTunInterface"
|
||||
}
|
||||
ad, err = wintun.OpenAdapter(config.InterfaceName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user