aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Server.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-08-16 23:51:48 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2012-08-16 23:51:48 +0400
commitf45cbf16090d3da9c5212ce52d36922acb57d90b (patch)
tree5ed1deaf56d40f4cc9ca6f1fe3baadd6c0b4bd8f /src/org/traccar/Server.java
parent5eee3dfcc05d64d8ec7f45de09dae5eee85d1454 (diff)
downloadtrackermap-server-f45cbf16090d3da9c5212ce52d36922acb57d90b.tar.gz
trackermap-server-f45cbf16090d3da9c5212ce52d36922acb57d90b.tar.bz2
trackermap-server-f45cbf16090d3da9c5212ce52d36922acb57d90b.zip
Allow binding on one address
Diffstat (limited to 'src/org/traccar/Server.java')
-rw-r--r--src/org/traccar/Server.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/org/traccar/Server.java b/src/org/traccar/Server.java
index 2f1c7fce5..184281b84 100644
--- a/src/org/traccar/Server.java
+++ b/src/org/traccar/Server.java
@@ -100,7 +100,12 @@ public class Server {
// Initialize web server
if (Boolean.valueOf(properties.getProperty("http.enable"))) {
Integer port = Integer.valueOf(properties.getProperty("http.port", "8082"));
- webServer = new WebServer(port, dataManager);
+ String address = properties.getProperty("http.address");
+ if (address != null) {
+ webServer = new WebServer(address, port, dataManager);
+ } else {
+ webServer = new WebServer(port, dataManager);
+ }
}
}