Wireguard: fix LAN access when vhost interface is used

This commit is contained in:
bergware
2023-10-15 10:33:34 +02:00
parent 801c33a832
commit 069f527445

View File

@@ -221,7 +221,7 @@ refresh();
Number.prototype.long2ip = function(){return [this>>>24,this>>>16&255,this>>>8&255,this&255].join('.');}
String.prototype.ip2long = function(){var ip=this.split('.');return (ip[0]<<24)+(ip[1]<<16)+(ip[2]<<8)+(ip[3]*1);}
String.prototype.desc = function(){return this.substr(this.lastIndexOf('/'));}
String.prototype.patch = function(s,t){return t?this.replace(/<source>/,s).replace(/<target>/,t):this.replace(/<source>/,s);}
String.prototype.patch = function(s,t){return t?this.replace(/<source>/g,s).replace(/<target>/,t):this.replace(/<source>/g,s);}
Array.prototype.bind = function(w){return (this.join(';')).replace(/<WG>/g,w).replace(/,/g,';');}
var xml = $.cookie('upnp')||'<?=@file_get_contents('/var/tmp/upnp')?>';