X-CASH-official / xcash-core

📦 First Cryptonote coin with public & private transactions, custom DPOS consensus
https://xcash.foundation
Other
66 stars 20 forks source link

Corrected IP_address modification #19

Closed ghost closed 4 years ago

ghost commented 4 years ago

The "IP_address" modification appears to attempt to check for a decimal point "." prior to allowing the command to proceed. Instead it checks for the absence with a != before it proceeds, causing it to error if any decimal point is found.

Description

Modified the code to be '== npos', requiring at least one decimal point on an IP_address change request in the CLI.

Type of change

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Checklist:

sonarcloud[bot] commented 4 years ago

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

zachhildreth commented 4 years ago

Thanks @CygnusMiner for finding this issue! It looks good so pulling it in