From 21ed8cf5c8dc2fe6353a5065016a0e781ca4e126 Mon Sep 17 00:00:00 2001 From: Andreas Jakum Date: Wed, 20 Mar 2019 22:35:38 +0100 Subject: Correctly show tunnel links via new tunnel endpoint. --- data.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'data.php') diff --git a/data.php b/data.php index 005267c..938c865 100644 --- a/data.php +++ b/data.php @@ -326,8 +326,10 @@ foreach ($lines as $num => $line) if($locations[$locids[$iptoLoc]]->state == "offline") $locations[$locids[$iptoLoc]]->state = "online"; } - if (($nodename[$ipfromLoc] == "tunnel" && $locations[$locids[$ipfromLoc]]->locname=="housing") || - ($nodename[$iptoLoc] == "tunnel" && $locations[$locids[$iptoLoc]]->locname=="housing" ) || + if (($nodename[$ipfromLoc] == "tunnel" && $locations[$locids[$ipfromLoc]]->locname == "housing") || + ($nodename[$iptoLoc] == "tunnel" && $locations[$locids[$iptoLoc]]->locname == "housing") || + ($nodename[$ipfromLoc] == "viennagw" && $locations[$locids[$ipfromLoc]]->locname == "edis") || + ($nodename[$iptoLoc] == "viennagw" && $locations[$locids[$iptoLoc]]->locname == "edis") || ($locations[$locids[$iptoLoc]]->hastinc && $locations[$locids[$ipfromLoc]]->hastinc)) { $links[$i]->label = -1; -- cgit v1.2.1