ERROR: Incorrect AllowedIP: 0.0.0.0/0
MarvAmBass opened this issue · comments
Marvin commented
Hi there,
I've found an issue when allowing everyone to use the webui.
ERROR: Incorrect AllowedIP: 0.0.0.0/0
It looks like the issue is located in this function and the netmask /0
is not parsed correctly
gocoin/client/common/config.go
Line 299 in 227ffe9
my gocoin.conf
{"Testnet":false,"ConnectOnly":"","Datadir":"","TextUI_Enabled":false,"UserAgent":"","UTXOSaveSec":0,"WebUI":{"Interface":":8833","AllowedIP":"0.0.0.0/0","ShowBlocks":144,"AddrListLen":15,"Title":"Gocoin","PayCmdName":"pay_cmd.txt","ServerMode":true},"RPC":{"Enabled":false,"Username":"gocoinrpc","Password":"gocoinpwd","TCPPort":0},"Net":{"ListenTCP":true,"TCPPort":0,"MaxOutCons":9,"MaxInCons":10,"MaxUpKBps":0,"MaxDownKBps":0,"MaxBlockAtOnce":3,"MinSegwitCons":4},"TXPool":{"Enabled":true,"AllowMemInputs":true,"FeePerByte":20,"MaxTxSize":100000,"ExpireMinPerKB":1800,"ExpireMaxHours":120,"SaveOnDisk":false},"TXRoute":{"Enabled":true,"FeePerByte":25,"MaxTxSize":100000},"Memory":{"GCPercTrshold":100,"MaxCachedBlks":200,"FreeAtStart":false},"AllBalances":{"MinValue":100000,"UseMapCnt":100,"SaveOnDisk":false},"Stat":{"HashrateHrs":12,"MiningHrs":24,"FeesBlks":24,"BSizeBlks":72},"DropPeers":{"DropEachMinutes":5,"BlckExpireHours":24,"PingPeriodSec":15}}
Piotr Narewski commented
Thanks for reporting. I will take care of it.
Marvin commented
Wow that was fast
Thanks for the fix