Skip to content

Commit

Permalink
Fix dns route cache insert
Browse files Browse the repository at this point in the history
  • Loading branch information
xinnige committed May 17, 2024
1 parent 51d18d7 commit 38c4664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/routing/routing_plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class RoutingPlugin extends Plugin {
await routing.addRouteToTable(dnsIP, gw, intf, routing.RT_GLOBAL_DEFAULT, metric, 4).catch((err) => {
this.log.warn(`fail to add route -4 ${dnsIP} via ${gw} dev ${intf} table ${routing.RT_GLOBAL_DEFAULT}, err:`, err.message)});
await routing.addRouteToTable(dnsIP, gw, intf, "main", metric, 4).then(() => {
this._updateDnsRouteCache(dnsIP, gw, viaIntf, metric, "main");
this._updateDnsRouteCache(dnsIP, gw, intf, metric, "main");
}).catch((err) => {
this.log.warn(`fail to add route -4 ${dnsIP} via ${gw} dev ${intf} table main, err:`, err.message)});
}
Expand Down

0 comments on commit 38c4664

Please sign in to comment.