Basic http is working

This commit is contained in:
Owen
2026-04-09 11:43:26 -04:00
parent 7e1e3408d5
commit 47c646bc33
5 changed files with 320 additions and 4 deletions

View File

@@ -59,6 +59,7 @@ type NetTunOptions struct {
EnableTCPProxy bool
EnableUDPProxy bool
EnableICMPProxy bool
EnableHTTPProxy bool
}
// CreateNetTUN creates a new TUN device with netstack without proxying
@@ -67,6 +68,7 @@ func CreateNetTUN(localAddresses, dnsServers []netip.Addr, mtu int) (tun.Device,
EnableTCPProxy: true,
EnableUDPProxy: true,
EnableICMPProxy: true,
EnableHTTPProxy: true,
})
}
@@ -93,6 +95,7 @@ func CreateNetTUNWithOptions(localAddresses, dnsServers []netip.Addr, mtu int, o
EnableTCP: options.EnableTCPProxy,
EnableUDP: options.EnableUDPProxy,
EnableICMP: options.EnableICMPProxy,
EnableHTTP: options.EnableHTTPProxy,
MTU: mtu,
})
if err != nil {