server & websocket adress & port added to setting

This commit is contained in:
2022-02-02 11:48:35 +01:00
parent 9a4fcee3dd
commit adeb02f7ce
6 changed files with 88 additions and 78 deletions

View File

@ -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 {