mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2025-01-08 17:54:05 +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() {
|
go func() {
|
||||||
pkt, err := packet.ReadHttpPacket(conn)
|
pkt, err := packet.ReadHttpPacket(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Debug("[PROXY] Error while parsing request: ", string(pkt.Raw()))
|
log.Debug("[PROXY] Error while parsing request: ", err)
|
||||||
conn.Close()
|
conn.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user