server & websocket adress & port added to setting
This commit is contained in:
@ -16,7 +16,7 @@ async function addArc(src, dest, uid, src_name, dest_name){
|
||||
var endLat = undefined;
|
||||
var endLng = undefined;
|
||||
if(!data.arc.some(x => x.src === src && x.dest === dest)) {
|
||||
if (src.includes("192.168.1.") || src.includes("127.0.0.1")) {
|
||||
if (src.includes(settings.ips.home) || src.includes("127.0.0.1")) {
|
||||
startLat = round(settings.location.home.lat, settings.location.precision)
|
||||
startLng = round(settings.location.home.lng, settings.location.precision)
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user