change from deprecated and removed aNY_PORT to defaultPort

(Both are just 0 internally.)
This commit is contained in:
Joey Hess 2020-10-08 10:35:16 -04:00
parent 30e3a2e4c4
commit fd81dd912b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -93,7 +93,7 @@ getSocket h = do
addr <- inet_addr "127.0.0.1" addr <- inet_addr "127.0.0.1"
sock <- socket AF_INET Stream defaultProtocol sock <- socket AF_INET Stream defaultProtocol
preparesocket sock preparesocket sock
bind sock (SockAddrInet aNY_PORT addr) bind sock (SockAddrInet defaultPort addr)
use sock use sock
where where
#else #else