summaryrefslogtreecommitdiff
path: root/vendor/github.com/fluffle/goirc/client/connection.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2018-07-24 14:35:44 +0200
committerDimitri Sokolyuk <demon@dim13.org>2018-07-24 14:35:44 +0200
commit621e49bb465f500cc46d47e39e828cf76d6381d7 (patch)
treee9d6ed54cfae73209f2b0d9a016ef0b64adf45a6 /vendor/github.com/fluffle/goirc/client/connection.go
parent5b9a4a158b81aa6e94a5a56d0851bea938b87bef (diff)
update vendor
Diffstat (limited to 'vendor/github.com/fluffle/goirc/client/connection.go')
-rw-r--r--vendor/github.com/fluffle/goirc/client/connection.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/github.com/fluffle/goirc/client/connection.go b/vendor/github.com/fluffle/goirc/client/connection.go
index f84621a..12d0e59 100644
--- a/vendor/github.com/fluffle/goirc/client/connection.go
+++ b/vendor/github.com/fluffle/goirc/client/connection.go
@@ -82,6 +82,11 @@ type Config struct {
// Local address to bind to when connecting to the server.
LocalAddr string
+ // To attempt RFC6555 parallel IPv4 and IPv6 connections if both
+ // address families are returned for a hostname, set this to true.
+ // Passed through to https://golang.org/pkg/net/#Dialer
+ DualStack bool
+
// Replaceable function to customise the 433 handler's new nick.
// By default an underscore "_" is appended to the current nick.
NewNick func(string) string
@@ -160,6 +165,7 @@ func Client(cfg *Config) *Conn {
dialer := new(net.Dialer)
dialer.Timeout = cfg.Timeout
+ dialer.DualStack = cfg.DualStack
if cfg.LocalAddr != "" {
if !hasPort(cfg.LocalAddr) {
cfg.LocalAddr += ":0"