Hi,
ref. https://github.com/genieacs/genieacs/pull/335.
it was a clumsy attempt to get the httpRequest.connection.remoteAddress
variable inside the sandbox.
So in a provisioning script one can have it like this:
let remoteip = getContext().httpRequest.connection.remoteAddress;
log ("INFO: Remote IP: " + remoteip);
remoteip variable can be used in the authentication scripts. In my case, I
don't know the CPEs serial numbers (don't really want to), but I know
customers' IP addresses so I can push personalized CPE parameters once I
know the remote IP.
Any other way to get that IP in the sandbox?

Victor Smirnov
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to