This commit is contained in:
Nate Brown
2025-04-15 21:00:50 -05:00
committed by JackDoan
parent 685364e10f
commit c5393e7e07
2 changed files with 72 additions and 68 deletions

View File

@@ -6,7 +6,6 @@ import (
"fmt"
"io"
"net/netip"
"runtime"
"sync"
"sync/atomic"
"time"
@@ -270,8 +269,6 @@ func (f *Interface) run() (func(), error) {
}
func (f *Interface) listenOut(i int) {
runtime.LockOSThread()
var li udp.Conn
if i > 0 {
li = f.writers[i]
@@ -295,8 +292,6 @@ func (f *Interface) listenOut(i int) {
}
func (f *Interface) listenIn(reader io.ReadWriteCloser, i int) {
runtime.LockOSThread()
packet := make([]byte, mtu)
out := make([]byte, mtu)
fwPacket := &firewall.Packet{}