144 |
|
* types. |
145 |
|
*/ |
146 |
|
public void run() { |
147 |
< |
if(_configuration.getProperty("control.onstartconnect") != null) { |
147 |
> |
if(!_configuration.getProperty("control.onstartconnect").equals("0")) { |
148 |
|
_actionQueue.add(new Integer(CONNECT)); |
149 |
|
} |
150 |
< |
if(_configuration.getProperty("data.onstartconnect") != null) { |
150 |
> |
if(!_configuration.getProperty("data.onstartconnect").equals("0")) { |
151 |
|
_actionQueue.add(new Integer(STARTDATA)); |
152 |
|
} |
153 |
|
while(_running) { |
521 |
|
*/ |
522 |
|
private String handleFirewall(String server, int port, Process firewallProcess) { |
523 |
|
String firewallCommand = _configuration.getProperty("firewall.command"); |
524 |
+ |
String useFirewall = _configuration.getProperty("useFirewall"); |
525 |
|
String firewallCommandWait = _configuration.getProperty("firewall.commandwait"); |
526 |
|
String firewallServer = _configuration.getProperty("firewall.server"); |
527 |
|
// if we are running firewall support...then lets start it |
528 |
< |
if (firewallCommand != null) { |
528 |
> |
if (!useFirewall.equals("0")) { |
529 |
|
// clean up the command with what we want |
530 |
|
firewallCommand = replaceText(firewallCommand, "%PORT%", new Integer(port).toString()); |
531 |
|
firewallCommand = replaceText(firewallCommand, "%SERVER%", server); |
553 |
|
|
554 |
|
// set the server we want to return |
555 |
|
server = firewallServer; |
556 |
< |
if (server == null) { |
556 |
> |
if (server.equals("")) { |
557 |
|
server = DEFAULT_FIREWALL_SERVER; |
558 |
|
} |
559 |
|
} catch (IOException e) { |