Merge pull request #3 from ProfFan/master
Fixed a small typo on IP retrieval
This commit is contained in:
commit
b8e66a7078
1 file changed
+2
-7
+2
-7
@@ -23,7 +23,7 @@ case $(uname) in
|
||||
echo "Windows"
|
||||
exit 100
|
||||
;;
|
||||
'Darwin')
|
||||
'Darwin')
|
||||
echo "Mac"
|
||||
arIpAddress() {
|
||||
ifconfig | grep "inet " | grep -v 127.0.0.1 | awk '{print $2}'
|
||||
@@ -33,7 +33,7 @@ case $(uname) in
|
||||
echo 'Solaris'
|
||||
exit 100
|
||||
;;
|
||||
'AIX')
|
||||
'AIX')
|
||||
echo 'AIX'
|
||||
exit 100
|
||||
;;
|
||||
@@ -55,11 +55,6 @@ arPass=""
|
||||
|
||||
source $DIR/dns.conf
|
||||
|
||||
# Port IP
|
||||
arIpAddress() {
|
||||
ipconfig getifaddr en6
|
||||
}
|
||||
|
||||
# Get Domain IP
|
||||
# arg: domain
|
||||
arNslookup() {
|
||||
|
||||
Reference in new issue
Block a user