Skip to content

external IP detection fix#9

Open
Ph0enix777 wants to merge 1 commit intomasterfrom
dev
Open

external IP detection fix#9
Ph0enix777 wants to merge 1 commit intomasterfrom
dev

Conversation

@Ph0enix777
Copy link

LOCALIPMASK="$LOCALIP$LOCALMASK"

IP=$(ip addr | grep 'inet' | grep -v inet6 | grep -vE '127.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | grep -o -E '[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}' | head -1)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants