Files
dingfeng.wong 9f0133a5c9 add
2025-07-25 18:01:53 +08:00

24 lines
591 B
Bash
Executable File

#!/bin/bash
# Build script for multi-path WireGuard example
set -e
echo "Building multi-path WireGuard example..."
# Ensure we're in the right directory
cd "$(dirname "$0")"
# Build the example
go build -o multipath-example main.go
echo "Build complete! Executable: ./multipath-example"
echo ""
echo "Usage examples:"
echo " # List available interfaces:"
echo " sudo ./multipath-example"
echo ""
echo " # Create multi-path tunnel:"
echo " sudo ./multipath-example eth0 wlan0"
echo ""
echo "Note: This example requires root privileges to create TUN devices and bind to interfaces."