piotrnar / gocoin

Full bitcoin solution written in Go (golang)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR: Incorrect AllowedIP: 0.0.0.0/0

MarvAmBass opened this issue · comments

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

func str2oaa(ip string) (res *oneAllowedAddr) {

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}}

Thanks for reporting. I will take care of it.

Wow that was fast

Thanks for the fix