-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make connection using specific ip #139
Comments
Not in the current code. Line 465 in 73e4444
Add dialer.LocalAddress := "192.168.0.2" Pr Welcome. |
Hi again, im getting an error: |
the code is:
|
|
Sorry but also error irc.go:466:73: unknown field 'LocalAddress' in struct literal of type net.Dialer |
try LocalAddr If that doesn't work I don't know. Check the go documentation. |
Hi i manage to get it work with code: dialer := proxy.FromEnvironmentUsing(&net.Dialer{ LocalAddr: &net.TCPAddr{
IP: net.ParseIP(irc.myhost),
Port: 0,
},Timeout: irc.Timeout})
//where myhost is passed here:
func IRC(nick, user string, myhost string) *Connection {
// catch invalid values |
Can we bind specifc ip to irc connection?
The text was updated successfully, but these errors were encountered: