Drop localhost

This commit is contained in:
hektor committed 2022-05-11 12:25:43 +02:00
1 parent 962548e0aa
commit c695712d12
1 file changed
+4 -1
+4 -1
View File
@@ -1,2 +1,5 @@
#!/usr/bin/env bash
ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}'
# Get local IP
ip addr show $@ | awk '/inet / {gsub(/\/.*/,"",$2); print $2}' | tail -n 1