fiorix / go-diameter

Diameter stack and Base Protocol (RFC 6733) for the Go programming language
Other
245 stars 141 forks source link

Allow clients to provide a pre-defined ip address. #73

Closed VDVsx closed 7 years ago

VDVsx commented 7 years ago

In some cases the requests might be fired from different machines via a gateway or a NAT, local IP might not match the rules defined in the diameter server side.

VDVsx commented 7 years ago

Not that familiar with this code yet, if some changes are needed somewhere else please let me know. Thanks.

fiorix commented 7 years ago

The Settings struct is used for both CER and CEA. We should honor the custom host IP address on both, not only CER.

VDVsx commented 7 years ago

@fiorix Thanks, added now to CEA as well, added also some simple tests covering the added setting.

fiorix commented 7 years ago

👍