mirror of
https://github.com/eosswedenorg/antelope-api-healthcheck
synced 2026-06-17 04:50:02 +02:00
src/server.go: fix an out-of-bounds bug in request parameter parsing code.
This commit is contained in:
parent
4ff008b312
commit
affc56393e
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ func onTcpMessage(c *tcp_server.Client, args string) {
|
|||
a.url = split[1]
|
||||
|
||||
// 3. Block time.
|
||||
if len(split) > 1 {
|
||||
if len(split) > 2 {
|
||||
num, err := strconv.ParseInt(split[2], 10, 32)
|
||||
if err == nil {
|
||||
a.block_time = int(num)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue