From df4d76e46653424aaac85b93466c247702a400a6 Mon Sep 17 00:00:00 2001 From: Santtu Lakkala Date: Mon, 29 Nov 2021 02:15:51 +0200 Subject: Allow binding to IP on IRC (#1640) Add configuration option "Bind" that is passed on to girc, allowing to choose which IP address to use on systems that have multiple ones. --- bridge/irc/irc.go | 1 + 1 file changed, 1 insertion(+) (limited to 'bridge/irc/irc.go') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index ac8222c6..260f66df 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -308,6 +308,7 @@ func (b *Birc) getClient() (*girc.Client, error) { User: user, Name: realName, SSL: b.GetBool("UseTLS"), + Bind: b.GetString("Bind"), TLSConfig: &tls.Config{InsecureSkipVerify: b.GetBool("SkipTLSVerify"), ServerName: server}, //nolint:gosec PingDelay: pingDelay, // skip gIRC internal rate limiting, since we have our own throttling -- cgit v1.2.3