]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
daemon: use unpack_sockaddr_* for clarity
authorEric Wong <e@80x24.org>
Tue, 8 Apr 2025 20:49:57 +0000 (20:49 +0000)
committerEric Wong <e@80x24.org>
Fri, 11 Apr 2025 08:40:37 +0000 (08:40 +0000)
commit0785d75893590043963beb00dd9d11411a3f9c07
treee66f671980b12911ebfccef5fada7d7888805f5b
parentb2b864e489b00185f7139a5b3de099598dbecdad
daemon: use unpack_sockaddr_* for clarity

unpack_sockaddr_un and unpack_sockaddr_in have been around since
Perl 5.002 in the mid-1990s, so be explicit and use them instead
of relying on wantarray caller context.  We'll also omit the
$host check for ($port == 0) since zero is not a valid TCP port.
lib/PublicInbox/Daemon.pm