Skip to content

remove IP lookup for nonat, check for Get-NetIPAddress cmdlet#3692

Merged
FeodorFitsner merged 2 commits into
appveyor:masterfrom
GitMensch:patch-1
Aug 23, 2021
Merged

remove IP lookup for nonat, check for Get-NetIPAddress cmdlet#3692
FeodorFitsner merged 2 commits into
appveyor:masterfrom
GitMensch:patch-1

Conversation

@GitMensch
Copy link
Copy Markdown
Contributor

@GitMensch GitMensch commented Jul 11, 2021

fixes #3691

  • fixing by explicit check (better than stack-trace and in-line with Linux check)
  • only do IP lookup when relevant

@GitMensch
Copy link
Copy Markdown
Contributor Author

GitMensch commented Aug 23, 2021

@FeodorFitsner Can I suggest you merge this?

If notat isn't set it saves one unused IP lookup, and even if this is only for BYOC then it still keeps the flow a bit more clean.
I've just added an explicit check which fixes the original issue.

@GitMensch GitMensch changed the title remove IP lookup for nonat remove IP lookup for nonat, check for Get-NetIPAddress cmdlet Aug 23, 2021
@FeodorFitsner FeodorFitsner merged commit a6f7fdb into appveyor:master Aug 23, 2021
@GitMensch GitMensch deleted the patch-1 branch August 23, 2021 18:35
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.

RDP script does not work - ObjectNotFound: (Get-NetIPAddress:String) when executing enable-rdp.ps1

2 participants