mirror of
https://github.com/unraid/webgui.git
synced 2026-01-07 18:19:54 -06:00
Wireguard: fix LAN access when vhost interface is used
This commit is contained in:
@@ -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')?>';
|
||||
|
||||
Reference in New Issue
Block a user