Commit b8724db8 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Added a local redirect port which will be used if the server should use a port...

Added a local redirect port which will be used if the server should use a port < 1024 (the protected port will redirect to this port)
parent 1c3b1433
......@@ -65,6 +65,8 @@ public class DNSServerSetting extends SingletonEntity implements Serializable{
private DNSServer.QueryListener queryListener;
@Ignore
private List<ServerStateListener> serverStateListeners = new ArrayList<>();
@Ignore
private int localRedirectPort = -1;
public DNSServerSetting(){
......@@ -92,6 +94,14 @@ public class DNSServerSetting extends SingletonEntity implements Serializable{
else for(ServerStateListener listener: serverStateListeners)listener.serverStopped();
}
public int getLocalRedirectPort() {
return localRedirectPort;
}
public void setLocalRedirectPort(int localRedirectPort) {
this.localRedirectPort = localRedirectPort;
}
public boolean isUdp() {
return udp;
}
......@@ -101,7 +111,7 @@ public class DNSServerSetting extends SingletonEntity implements Serializable{
}
public int getPort() {
return port;
return localRedirectPort == -1 ? port : localRedirectPort;
}
public int getServerTimeout() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment