Changeset 694 in code for trunk/server.go


Ignore:
Timestamp:
Nov 17, 2021, 10:41:11 AM (4 years ago)
Author:
contact
Message:

Add config option to globally disable multi-upstream mode

Closes: https://todo.sr.ht/~emersion/soju/122

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server.go

    r691 r694  
    6262        AcceptProxyIPs  config.IPSet
    6363        MaxUserNetworks int
     64        MultiUpstream   bool
    6465        MOTD            string
    6566}
     
    8687                users:     make(map[string]*user),
    8788        }
    88         srv.config.Store(&Config{Hostname: "localhost", MaxUserNetworks: -1})
     89        srv.config.Store(&Config{
     90                Hostname:        "localhost",
     91                MaxUserNetworks: -1,
     92                MultiUpstream:   true,
     93        })
    8994        return srv
    9095}
Note: See TracChangeset for help on using the changeset viewer.