mirror of
https://github.com/unraid/webgui.git
synced 2026-01-01 15:10:19 -06:00
19 lines
286 B
Bash
Executable File
19 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
CALLER="show"
|
|
|
|
# library functions
|
|
. /etc/rc.d/rc.library.source
|
|
|
|
# include IP addresses?
|
|
if check && [[ $1 == ip ]]; then
|
|
ip=()
|
|
for net in $bind; do
|
|
ip+=("$net#[$(show -4 dev $net)#$(show -6 dev $net)]")
|
|
done
|
|
bind=${ip[@]}
|
|
fi
|
|
|
|
# return list
|
|
echo ${bind// /, }
|