Your ROOT_URL in app.ini is unix://git.lalonde.me:3000/ but you are visiting https://git.lalonde.me/matth/fw-daemon/commit/35f3735a401ddb1cd49f6f92f14b9fc9d95f8962?style=split&whitespace=ignore-eol You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix IP address parsing bug

pull/16/head
brl 9 years ago
parent 27391175f7
commit 35f3735a40

@ -139,10 +139,10 @@ func (r *Rule) parseAddr(a string) bool {
return true return true
} }
ip := net.ParseIP(a) ip := net.ParseIP(a)
if ip == nil || len(ip) != 4 { if ip == nil {
return false return false
} }
r.addr = binary.BigEndian.Uint32(ip) r.addr = binary.BigEndian.Uint32(ip.To4())
return true return true
} }

Loading…
Cancel
Save