Changeset 426 in code
- Timestamp:
- Oct 25, 2020, 5:22:12 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 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 { -
trunk/doc/soju.1.scd
r386 r426 115 115 Allow the specified IPs to act as a proxy. Proxys have the ability to 116 116 overwrite the remote and local connection addresses (via the X-Forwarded-\* 117 HTTP header fields). By default, the loopback addresses 127.0.0.0/8 and118 ::1/128 are accepted.117 HTTP header fields). The special name "localhost" accepts the loopback 118 addresses 127.0.0.0/8 and ::1/128. By default, all IPs are rejected. 119 119 120 120 # IRC SERVICE
Note:
See TracChangeset
for help on using the changeset viewer.