mirror of
https://github.com/daeuniverse/dae.git
synced 2024-12-23 01:14:46 +07:00
docs: add more debug info
This commit is contained in:
parent
d67fe075a3
commit
f2fba0a261
@ -5,7 +5,10 @@
|
||||
|
||||
package consts
|
||||
|
||||
import internal "github.com/v2rayA/dae/pkg/ebpf_internal"
|
||||
import (
|
||||
internal "github.com/v2rayA/dae/pkg/ebpf_internal"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
const (
|
||||
AppName = "dae"
|
||||
@ -78,7 +81,7 @@ func (i OutboundIndex) String() string {
|
||||
case OutboundLogicalAnd:
|
||||
return "<AND>"
|
||||
default:
|
||||
return ""
|
||||
return strconv.Itoa(int(i))
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -137,7 +137,7 @@ func (c *ControlPlane) handlePkt(data []byte, src, dst netip.AddrPort, outboundI
|
||||
default:
|
||||
}
|
||||
if int(outboundIndex) >= len(c.outbounds) {
|
||||
return fmt.Errorf("outbound %v out of range", outboundIndex)
|
||||
return fmt.Errorf("outbound %v out of range [0, %v]", outboundIndex, len(c.outbounds)-1)
|
||||
}
|
||||
outbound := c.outbounds[outboundIndex]
|
||||
dnsMessage, natTimeout := ChooseNatTimeout(data)
|
||||
|
Loading…
Reference in New Issue
Block a user