mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 03:47:39 +03:00
Fix linux unset route
This commit is contained in:
parent
f53aabff27
commit
d35c334b46
1 changed files with 1 additions and 0 deletions
|
@ -74,6 +74,7 @@ func (t *NativeTun) configure(tunLink netlink.Link) error {
|
|||
}
|
||||
|
||||
if t.autoRoute {
|
||||
_ = t.unsetRoute0(tunLink)
|
||||
err = t.setRoute(tunLink)
|
||||
if err != nil {
|
||||
_ = t.unsetRoute0(tunLink)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue