lazy-code/bash/sb-vpn

4 lines
89 B
Text
Raw Permalink Normal View History

2024-07-03 21:06:41 +02:00
#!/usr/bin/env bash
ip -o -4 a show tun0 | awk '/inet 10\./ {print $4}' | cut -d'/' -f1