diff options
author | Kristian Lyngstol <kly@kly@.no> | 2016-03-23 10:53:45 +0100 |
---|---|---|
committer | Kristian Lyngstol <kly@kly@.no> | 2016-03-23 10:53:45 +0100 |
commit | 50a9e3fcb3e8e6f3ec13eebe1da8df7bdf7af45c (patch) | |
tree | 091af4cb1a24f97bf60d5ff84acd15119fcb1e06 /web/nms.gathering.org/api/public | |
parent | 65c8e3fca802155828626898ede0d08beccfe579 (diff) |
NMS: Bump location and placement
Diffstat (limited to 'web/nms.gathering.org/api/public')
-rwxr-xr-x | web/nms.gathering.org/api/public/location | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/nms.gathering.org/api/public/location b/web/nms.gathering.org/api/public/location index 6c25ab9..b940007 100755 --- a/web/nms.gathering.org/api/public/location +++ b/web/nms.gathering.org/api/public/location @@ -8,7 +8,7 @@ use warnings; use Data::Dumper; #my $query = $nms::web::dbh->prepare("select * from switches where '185.110.150.7' << subnet4"); -my $query = $nms::web::dbh->prepare("select * from switches where ? << subnet4"); +my $query = $nms::web::dbh->prepare("select * from switches where ? << subnet4 or ? << subnet6"); print "Cache-Control: max-age=0"; print "Content-Type: text/html"; @@ -20,7 +20,7 @@ print "\n\n"; my @xff = split(",",$ENV{HTTP_X_FORWARDED_FOR}); my $addr = $xff[0] // $ENV{REMOTE_ADDR}; -$query->execute($addr); +$query->execute($addr,$addr); # add start html: header + body etc. print " |