summaryrefslogtreecommitdiffstats
path: root/bridge
diff options
context:
space:
mode:
authorSanttu Lakkala <santtu.lakkala@jolla.com>2021-11-29 02:15:51 +0200
committerGitHub <noreply@github.com>2021-11-29 01:15:51 +0100
commitdf4d76e46653424aaac85b93466c247702a400a6 (patch)
treea260b9a3c9b1395a9331df483027a605ec5a511b /bridge
parentdcbd7f8cada7b4225c44824df0898a2a19aa54a7 (diff)
downloadmatterbridge-msglm-df4d76e46653424aaac85b93466c247702a400a6.tar.gz
matterbridge-msglm-df4d76e46653424aaac85b93466c247702a400a6.tar.bz2
matterbridge-msglm-df4d76e46653424aaac85b93466c247702a400a6.zip
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.
Diffstat (limited to 'bridge')
-rw-r--r--bridge/irc/irc.go1
1 files changed, 1 insertions, 0 deletions
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