Changeset 426 in code for trunk/config
- Timestamp:
- Oct 25, 2020, 5:22:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/config/config.go
r424 r426 53 53 } 54 54 return &Server{ 55 Hostname: hostname, 56 SQLDriver: "sqlite3", 57 SQLSource: "soju.db", 58 AcceptProxyIPs: loopbackIPs, 55 Hostname: hostname, 56 SQLDriver: "sqlite3", 57 SQLSource: "soju.db", 59 58 } 60 59 } … … 101 100 srv.AcceptProxyIPs = nil 102 101 for _, s := range d.Params { 102 if s == "localhost" { 103 srv.AcceptProxyIPs = append(srv.AcceptProxyIPs, loopbackIPs...) 104 continue 105 } 103 106 _, n, err := net.ParseCIDR(s) 104 107 if err != nil {
Note:
See TracChangeset
for help on using the changeset viewer.