mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 973842 - Part 2: Support adding secondary routes (NetworkService). r=vchang
This commit is contained in:
parent
b76073aeed
commit
ecc4e88fb1
@ -365,6 +365,30 @@ NetworkService.prototype = {
|
||||
this.controlMessage(options, function() {});
|
||||
},
|
||||
|
||||
addSecondaryRoute: function(ifname, route) {
|
||||
if(DEBUG) debug("Going to add route to secondary table on " + ifname);
|
||||
let options = {
|
||||
cmd: "addSecondaryRoute",
|
||||
ifname: ifname,
|
||||
ip: route.ip,
|
||||
prefix: route.prefix,
|
||||
gateway: route.gateway
|
||||
};
|
||||
this.controlMessage(options, function() {});
|
||||
},
|
||||
|
||||
removeSecondaryRoute: function(ifname, route) {
|
||||
if(DEBUG) debug("Going to remove route from secondary table on " + ifname);
|
||||
let options = {
|
||||
cmd: "removeSecondaryRoute",
|
||||
ifname: ifname,
|
||||
ip: route.ip,
|
||||
prefix: route.prefix,
|
||||
gateway: route.gateway
|
||||
};
|
||||
this.controlMessage(options, function() {});
|
||||
},
|
||||
|
||||
setNetworkProxy: function(network) {
|
||||
try {
|
||||
if (!network.httpProxyHost || network.httpProxyHost === "") {
|
||||
|
Loading…
Reference in New Issue
Block a user