Closed CallMeFoxie closed 3 months ago
Current behavior gridcoinresearchd crashes when given a wrong IP on setban command
Expected behavior ban a remote
Steps to reproduce:
for peer in $(gridcoinresearchd getpeerinfo | jq '.[] | select(.subver=="/Halford:5.4.5/") | .addr' -r); do gridcoinresearchd setban $peer add 3600; done
the output is in format ip:port of the remotes, not just pure IPs, however this causes a segfault
ip:port
63613064.639190] gridcoinresearc[12613]: segfault at 0 ip 000055e6fc7209b8 sp 00007feef77fc8f0 error 4 in gridcoinresearchd[55e6fc2e9000+648000]
however stripping the port part works fine
for peer in $(gridcoinresearchd getpeerinfo | jq '.[] | select(.subver=="/Halford:5.4.5/") | .addr' -r); do gridcoinresearchd setban $(echo $peer | cut -d':' -f1) add 3600; done
Gridcoin version v.5.4.6.0
Machine specs
Bug Report
Current behavior gridcoinresearchd crashes when given a wrong IP on setban command
Expected behavior ban a remote
Steps to reproduce:
the output is in format
ip:port
of the remotes, not just pure IPs, however this causes a segfaulthowever stripping the port part works fine
Gridcoin version v.5.4.6.0
Machine specs