kofany

Results 6 comments of kofany

Hi again, im getting an error: dialer.LocalAddress undefined (type proxy.Dialer has no field or method LocalAddress)

the code is: dialer := proxy.FromEnvironmentUsing(&net.Dialer{Timeout: irc.Timeout}) dialer.LocalAddress = "127.0.0.1" irc.socket, err = dialer.Dial("tcp", irc.Server)

Sorry but also error irc.go:466:73: unknown field 'LocalAddress' in struct literal of type net.Dialer

Hi i manage to get it work with code: (all changes You can see on my GitHub (In fork) ```go dialer := proxy.FromEnvironmentUsing(&net.Dialer{ LocalAddr: &net.TCPAddr{ IP: net.ParseIP(irc.myhost), Port: 0, },Timeout:...

Nów it should be backward compatible as of tag/release v0.1.4 of my fork

@vague666 so Im little confused with those whitespaces as they was made after using clang format from your repo, my original code without this formatter is here https://github.com/irssi/irssi/commit/49f819ea8a09d4fe0ab4197fd02df7682239aff9 So what...