Commit 2d283a1
Allow empty host field so Save works with auto-discovery (1.0.3)
v1.0.2's H6 fix used Regex.IP on the optional host textinput, which rejects
the empty string. That locked the Save button whenever the user picked an
LV1 from the discovery dropdown (the standard flow): the discovery path
needs host to stay empty so the connect logic falls back to the cached IP
and port from the dropdown selection.
Replace the strict IP regex with `^$|<ipv4>` so the field accepts either
an empty string (= auto-discovery is in use) or a valid dotted-quad IPv4
(= manual override). Selected dropdown + empty host is now a valid state.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 2c30df3 commit 2d283a1
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments