Duplicate :
|
|
Duplicate :
|
The method PACFunctionImpl.myIpAddress() always returns loop back address, (i.e. 127.0.0.1) instead of real value due to lack of permission Fix: - PACFunctionImpl.myIpAddress() should be executed inside doPrivileged block - It is necessary to explicitly cast the results returned by PACFunctionImpl.myIpAddress() and PACFunctionImpl.dnsResolve() to JavaScript strings, since Rhino script engine "doesn't like" Java String
|