Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude IPv6 address from assigned IPs #28

Open
cyber4len opened this issue Jun 1, 2018 · 0 comments
Open

Exclude IPv6 address from assigned IPs #28

cyber4len opened this issue Jun 1, 2018 · 0 comments

Comments

@cyber4len
Copy link

cyber4len commented Jun 1, 2018

https://github.com/OnApp/SolusVM-WHMCS-Module/blob/c1f109e090d315cec8a544867e765ae71e88678e/modules/servers/solusvmpro/solusvmpro.php#L731

SolusVM returns both IPv4 and IPv6 addresses in "extra ip" field, thus tblhosting.assignedips field contains also IPv6 addresses. So, in case the service includes 6 IPv6 addresses and client has one extra IPv4 address, then "assignedips" field contains 7 elements. Once he requests upgrade of the package (even without changing the number of extra IPs), all IPv4 addresses will be removed.
Variable $num_current_ips should exclude IPv6 addresses.

elesei added a commit to elesei/SolusVM-WHMCS-Module that referenced this issue Jun 4, 2019
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

No branches or pull requests

1 participant