4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 07:29:24 +00:00

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.
This commit is contained in:
Santtu Lakkala
2021-11-29 02:15:51 +02:00
committed by GitHub
parent dcbd7f8cad
commit df4d76e466
2 changed files with 6 additions and 0 deletions

View File

@ -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