mirror of
https://github.com/xjasonlyu/tun2socks.git
synced 2025-10-05 16:56:54 +08:00
Chore(tun): remove with options
This commit is contained in:
@@ -27,7 +27,7 @@ func parseDevice(s string, mtu uint32) (device.Device, error) {
|
||||
|
||||
switch driver {
|
||||
case tun.Driver:
|
||||
return tun.Open(tun.WithName(name), tun.WithMTU(mtu))
|
||||
return tun.Open(name, mtu)
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported driver: %s", driver)
|
||||
}
|
||||
|
Reference in New Issue
Block a user