Closed yaneony closed 7 years ago
@jsieler Could you please elaborate?
@bdsomer as for example copied from "request" module:
localAddress - local interface to bind for network connections.
Also, if your server do have multiple IP adresses, this option allows you to set interface address for desired connection.
I'll be sure to implement this in a near release. 👍 Thanks for the suggestion!
@jsieler @ethanent Already exists, implemented as the localAddress
property. See the documentation of the options
paramater here.
@bdsomer We've been discussing phin, not the Node HTTP module. This feature does not exist in phin.
@ethanent Yes it does! Object.assign
causes all options passed in to be forwarded to the HTTP module. Go ahead, try it yourself!
@bdsomer Oh, ha. Didn't realize we did that with the opts
object. Thanks for reminding me!
@jsieler You should be good to go! Just add the localAddress
property to the phin request options!
Is setting local address possible with this library?