refatoração fixes bug#7405

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55423 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2016-04-29 20:55:14 +00:00
parent c92d017cf5
commit d69f252879
2 changed files with 11 additions and 12 deletions

View File

@ -73,17 +73,6 @@ public class IPValidatorUtileria {
return null;
}
public static boolean ipExternoException(String ipServidor) {
if (ipServidor.equals(getIpExternalAWS())) {
log.info(" IP capturado: " + getIpExternalAWS());
log.info(" IP: " + ipServidor);
return true;
} else {
return false;
}
}
public static void main(String[] args) {
System.out.println("Current IP address : " + IPValidatorUtileria.getIp());
System.out.println("Current IP address AWS: " + IPValidatorUtileria.getIpExternalAWS());

View File

@ -74,7 +74,17 @@ public class MyAppInit implements org.zkoss.zk.ui.util.WebAppInit {
return false;
}
return (IPValidatorUtileria.ipExternoException(ipConstante));
String ipExternalAWS = IPValidatorUtileria.getIpExternalAWS();
if (ipConstante.equals(IPValidatorUtileria.getIpExternalAWS())) {
log.info(" IP capturado: " + ipExternalAWS);
log.info(" IP: " + ipConstante);
return true;
} else {
return false;
}
}
private Integer[] horaExecucion() {