Fix: replace pflag with flag

pflag was deprecated due to poor maintenance
This commit is contained in:
xjasonlyu
2021-02-11 13:06:12 +08:00
parent c96c5946c8
commit 7e55b71b30
4 changed files with 17 additions and 19 deletions

View File

@@ -30,7 +30,7 @@ func Insert(k *Key) {
}
type Key struct {
MTU uint32
MTU int
Mark int
Proxy string
Stats string
@@ -138,7 +138,7 @@ func (e *engine) setDevice() (err error) {
return errors.New("empty device")
}
e.device, err = parseDevice(e.Device, e.MTU)
e.device, err = parseDevice(e.Device, uint32(e.MTU))
return
}