summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/socket/raddrinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index e85109e401f..0f89e9c5b6f 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -1398,13 +1398,15 @@ addrinfo_s_getaddrinfo(int argc, VALUE *argv, VALUE self)
return addrinfo_list_new(node, service, family, socktype, protocol, flags);
}
-
/*
* call-seq:
* AddrInfo.ip(host) => addrinfo
*
* returns an addrinfo object for IP address.
*
+ * The port, socktype, protocol of the result is filled by zero.
+ * So, it is not appropriate to create a socket.
+ *
* AddrInfo.ip("localhost") #=> #<AddrInfo: 127.0.0.1 (localhost)>
*/
static VALUE