mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 14:26:31 +00:00
fix: nil pointer deref
This commit is contained in:
parent
4721bd6067
commit
fa2cfc4c8c
@ -63,7 +63,7 @@ func (pxy *Proxy) Start() {
|
||||
go func() {
|
||||
pkt, err := packet.ReadHttpPacket(conn)
|
||||
if err != nil {
|
||||
log.Debug("[PROXY] Error while parsing request: ", string(pkt.Raw()))
|
||||
log.Debug("[PROXY] Error while parsing request: ", err)
|
||||
conn.Close()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user