Skip to content

Commit

Permalink
Change public IP address website
Browse files Browse the repository at this point in the history
  • Loading branch information
asiffermann committed Jan 3, 2018
1 parent 15791b2 commit 2c4d77e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Common/PowerShell3/VstsAzureHelpers/HelperFunctions.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function Get-AgentStartIPAddress {
$data = (Invoke-WebRequest -Uri "whatismyip.org" -UseBasicParsing -Verbose).Content
$data = (Invoke-WebRequest -Uri "checkip.dyndns.org" -UseBasicParsing -Verbose).Content

$ipRegex = "(?<Address>((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))"
if ($data -Match $ipRegex) {
Expand Down

1 comment on commit 2c4d77e

@asiffermann
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solved #25

Please sign in to comment.