Skip to content

Conversation

@thapr0digy
Copy link

When iterating through some VMs, the PublicIPAddress field on the ipConfig struct can be nil. In these cases, we don't want to dereference and just want to go to the next configuration.

Also, the IPAddress for a nic IP could also be nil and in the same case, we do not want to dereference and add to the list. We'd rather leave it off.

olearycrew and others added 3 commits March 30, 2024 21:21
* Remove items moved to the centralized docs

* Update links

---------

Co-authored-by: Brendan O'Leary <boleary@gitlab.com>
@ehsandeep ehsandeep changed the base branch from main to dev May 4, 2024 12:50
@ehsandeep ehsandeep requested a review from Ice3man543 May 4, 2024 12:59
@thapr0digy thapr0digy requested a review from ehsandeep May 7, 2024 19:44
@thapr0digy
Copy link
Author

@ehsandeep let me know if those changes look good for you.

@Ice3man543 Ice3man543 merged commit 49645e6 into projectdiscovery:dev Jun 4, 2024
@thapr0digy thapr0digy deleted the fix-nil-pubips branch November 5, 2024 15:22
visnetodev pushed a commit to visnetotest/cloudlist that referenced this pull request Dec 7, 2025
Fixed nil fields being dereferenced for public ips
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.

5 participants