Skip to content

被控端报错panic: runtime error: invalid memory address or nil pointer dereference #3

@bingotl

Description

@bingotl

命令
/etc/profile;/root/ip_table CriiJQxxxx 10.123.111.102 http://ip:10080/api

报错:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7187e1]

goroutine 1 [running]:
main.getRules(0x0, 0x0, 0x0, 0x0, 0x0)
/Users/mrjun/Golang/main.go:25 +0xd1
main.main()
/Users/mrjun/Golang/main.go:214 +0x149

被控端是nat,ip是内网ip没错,命令应该也没问题,因为在另外一台国外vps上测试返回:清理规则,但是这台nat不行。

已经执行更新yum install ca-certificates -y

麻烦帮看看,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions