Open heshanlk opened 4 years ago
Hapi newer versions don't support this and it needs to be info._remoteAddress etc.
info._remoteAddress
remoteAddress is just a getter function and in order to change the value you must change the property directly using _remoteAddress.
_remoteAddress
Just note that request.info is a read-only property so maybe they don't want it to be different than what they have.
request.info
https://hapi.dev/api/?v=19.1.0#-requestinfo
Thank you @heshanlk It works with hapi 20.1.3 (by using your forked version)
Hapi newer versions don't support this and it needs to be
info._remoteAddress
etc.remoteAddress is just a getter function and in order to change the value you must change the property directly using
_remoteAddress
.Just note that
request.info
is a read-only property so maybe they don't want it to be different than what they have.https://hapi.dev/api/?v=19.1.0#-requestinfo