#!/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."