mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-05 04:47:41 +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 {
|
if t.autoRoute {
|
||||||
|
_ = t.unsetRoute0(tunLink)
|
||||||
err = t.setRoute(tunLink)
|
err = t.setRoute(tunLink)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
_ = t.unsetRoute0(tunLink)
|
_ = t.unsetRoute0(tunLink)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue