+2
−6
Loading
validAddress() in serverconfig.cpp and editorconfig.cpp called
inet_pton(AF_INET/AF_INET6) directly, which needs platform socket
headers (broke the FreeBSD build, and <arpa/inet.h> does not exist on
Windows). libnetplus already provides isIPAddr() with POSIX and Windows
implementations, and both targets link netplus, so use it.
Co-Authored-By:
Claude Opus 5.5 <noreply@anthropic.com>