fix: nil pointer deref

This commit is contained in:
LiquidTheDangerous 2024-08-14 18:55:04 +05:00
parent 4721bd6067
commit fa2cfc4c8c

View File

@ -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
} }