This question already has an answer here:
I a using go's http package to make http requests. When having several interfaces on Ubuntu Linux, how can I configure go's http client to use a specific interface or IP address to perform the request?
How does the default http client decide which interface it uses?
</div>