Skip to content

Commit 27aec82

Browse files
committed
"Long" dotted-decimal netmasks style returned
1 parent 7495925 commit 27aec82

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CHANGELOG
22

3-
* **2025.02.12 Current**
3+
* **2025.03.25 Current**
4+
* `inifile.c`: "Long" dotted-decimal netmasks style returned, so `255.255.0.0` and `/16` both working
45
* `inifile.c`: ignore netmasks for `target_host`
56
* `inifile.c`: correct `/32` netmask for `target_network`
67
* `gui-warp.py`/`gui-warp.py.in`: 'Password hash' caption

inifile.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ ini_section *read_ini(char *ifile_name) {
330330
mexit(1, pfile_name, tfile_name);
331331
}
332332

333+
if (strchr(entry.val2, '.')) {
334+
/* Long netmask format, e.g.: 255.0.0.0 */
335+
c_targ->ip2 = str2inet(entry.val2, entry.mod2);
336+
break;
337+
}
338+
333339
int m = strtol(entry.val2, NULL, 10);
334340
/* Build IPv4 address netmask based on CIDR */
335341
if (m < 33 && m >= 0) {

0 commit comments

Comments
 (0)