<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi Rick,</div><div dir="ltr">If you are desperate, here's a quick fix: <a href="https://github.com/genieacs/genieacs/pull/335">https://github.com/genieacs/genieacs/pull/335</a></div><div dir="ltr"><br></div><div dir="ltr">then in your provision script you can have:</div><div dir="ltr"><br></div><div dir="ltr">let thiscontext = getContext();</div><div dir="ltr">log ("INFO scriptname: Remote IP: " + thiscontext.httpRequest.connection.remoteAddress);<br></div><div dir="ltr"><br></div><div>There's clearly a need and a good reason why (parts of) the context should be available inside the sandbox.</div><div><br></div><div dir="ltr"><div><div dir="ltr" class="gmail_signature">Victor Smirnov</div></div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den tor. 28. feb. 2019 kl. 20:30 skrev Rickard Johansson <<a href="mailto:rickard.johansson@equiinet.com">rickard.johansson@equiinet.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>A couple of my CPE's are behind NAT and therefore reports a local IP in InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.1.ExternalIPAddress.</div><div><br></div><div>I wonder if it is possible to get the real / synced from IP, maybe using a Virtual Parameter?</div><div>Genie obviously knows the IP as it's included in the log files, but can it be accessed from a script?</div><div><br></div><div><div>let ip = getIP(...);</div><div>let fromIP = declare("InternetGatewayDevice.FromIP", {value: 1});</div><div>return {writable: false, value: [ip, "xsd:string"]};</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Rick</div><div dir="ltr" class="gmail-m_-6284362198513718993gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="margin:0px;padding:0px 0px 20px;width:1512px;font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:medium;letter-spacing:normal"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com" target="_blank">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
</blockquote></div>