CopyFrom pattern for DNS and use it for Cookie

This commit is contained in:
soypat
2025-06-25 09:32:35 -03:00
parent 1fcde05284
commit 23212d8dc6
6 changed files with 81 additions and 12 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ func NewBridge(name string) (*Bridge, error) {
if err != nil {
return nil, err
}
proto := htons(syscall.ETH_P_IP)
proto := htons(syscall.ETH_P_ALL)
fd, err := syscall.Socket(syscall.AF_PACKET, syscall.SOCK_RAW, int(proto))
if err != nil {
return nil, err