refatoração fixes bug#7405
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@55423 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c92d017cf5
commit
d69f252879
|
@ -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());
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue