mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 20:07:40 +03:00
move WFP manipulation to strict route
This commit is contained in:
parent
ea5c35f62f
commit
66c48a5777
1 changed files with 1 additions and 1 deletions
|
@ -154,7 +154,7 @@ func (t *NativeTun) configure() error {
|
|||
}
|
||||
}
|
||||
|
||||
if t.options.AutoRoute {
|
||||
if t.options.AutoRoute && t.options.StrictRoute {
|
||||
var engine uintptr
|
||||
session := &winsys.FWPM_SESSION0{Flags: winsys.FWPM_SESSION_FLAG_DYNAMIC}
|
||||
err := winsys.FwpmEngineOpen0(nil, winsys.RPC_C_AUTHN_DEFAULT, nil, session, unsafe.Pointer(&engine))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue