Commit ac34fbf
committed
gw: Validate IP is within client_ip_range in valid_ip()
When gateway config changes and client_ip_range is modified, existing
CVMs may have IPs outside the new range. The valid_ip() function now
checks if IP is within client_ip_range, causing re-registration to
allocate a new IP within the valid range.1 parent 51152d5 commit ac34fbf
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
785 | 789 | | |
786 | 790 | | |
787 | 791 | | |
| |||
0 commit comments