コミットメタ情報

リビジョンae73b682501374ec29ce9f8a796e85462d7a9236 (tree)
日時2019-07-24 10:17:05
作者Satoshi Yasuda <7m3tjz@jarl...>
コミッターSatoshi Yasuda

ログメッセージ

modified: portset.c

変更サマリ

差分

--- a/portset.c
+++ b/portset.c
@@ -55,7 +55,7 @@ void portSet(void)
5555 {
5656 memset (&hints, 0x00, sizeof(hints));
5757 hints.ai_socktype = SOCK_STREAM;
58- hints.ai_family = PF_UNSPEC;
58+ hints.ai_family = PF_INET;
5959 hints.ai_flags = AI_PASSIVE;
6060 sprintf (PORT, "%d", http_port);
6161 if ((err = getaddrinfo (NULL, PORT, &hints, &http_serv)) != 0)
@@ -126,7 +126,7 @@ void portSet(void)
126126 if (!getOwnIp()) return;
127127 memset (&hints, 0x00, sizeof(hints));
128128 hints.ai_socktype = SOCK_DGRAM;
129- hints.ai_family = PF_UNSPEC;
129+ hints.ai_family = PF_INET;
130130 if ((err = getaddrinfo (inet_ntoa (OwnIP), NULL, &hints, &upnp_bind_sock)) != 0)
131131 {
132132 time (&cur_time);
@@ -140,7 +140,7 @@ void portSet(void)
140140 fprintf (log_file, "%24.24s socket error in upnp bind sock %s\n",
141141 ctime(&cur_time), strerror(errno));
142142 fflush (log_file);
143- return FALSE;
143+ return;
144144 }
145145
146146 if (bind (upnp_udp_sd, upnp_bind_sock->ai_addr, upnp_bind_sock->ai_addrlen) == -1)
@@ -153,7 +153,7 @@ void portSet(void)
153153
154154 memset (&hints, 0x00, sizeof(hints));
155155 hints.ai_socktype = SOCK_DGRAM;
156- hints.ai_family = PF_UNSPEC;
156+ hints.ai_family = PF_INET;
157157
158158 if ((err = getaddrinfo ("239.255.255.250", "1900", &hints, &upnp_sock)) != 0)
159159 {
旧リポジトリブラウザで表示