This commit is contained in:
Your Name
2025-07-27 22:55:43 +08:00
parent bc84b69ebc
commit c353e76058
5 changed files with 486 additions and 8 deletions
-2
View File
@@ -8,7 +8,6 @@ package device
import (
"fmt"
"net"
"runtime"
"golang.zx2c4.com/wireguard/conn"
"golang.zx2c4.com/wireguard/tun"
@@ -152,7 +151,6 @@ func ExampleMultiPathUsage(logger *Logger) {
// Example: Create multi-path device using specific interface names
// This would send each packet through both eth0 and wlan0
interfaceNames := []string{"eth0", "wlan0"}
// Note: You would need to create/configure your TUN device
// tunDevice, err := tun.CreateTUN("wg0", 1420)