commit f2160403a3b0a84f0e0f81fd82a184c0ab50c6f9
Author: Santtu Lakkala <santtu.lakkala@jolla.com>
Date: Mon Nov 29 02:15:51 2021 +0000
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index ac8222c..260f66d 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -3086 +3087 @@ 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
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample
index f41b260..0ffcd90 100644
--- a/matterbridge.toml.sample
+++ b/matterbridge.toml.sample
@@ -346 +3411 @@ UseSASL=false
#OPTIONAL (default false)
SkipTLSVerify=true
+#Local address to use for server connection
+#Note that Server and Bind must resolve to addresses of the same family.
+#OPTIONAL (default "")
+Bind=""
+
#If you know your charset, you can specify it manually.
#Otherwise it tries to detect this automatically. Select one below
# "iso-8859-2:1987", "iso-8859-9:1989", "866", "latin9", "iso-8859-10:1992", "iso-ir-109", "hebrew",