lazy-code/bash/sb-vpn
2024-07-03 21:06:41 +02:00

3 lines
89 B
Bash

#!/usr/bin/env bash
ip -o -4 a show tun0 | awk '/inet 10\./ {print $4}' | cut -d'/' -f1