Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
6ed289cf
Commit
6ed289cf
authored
Feb 12, 2004
by
Niels Möller
Browse files
(address_info2sockaddr) [!HAVE_GETADDRINFO]: Updated
code to work with new string abstraction. Rev: src/io.c:1.206
parent
2c4e0ff6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/io.c
View file @
6ed289cf
...
...
@@ -1324,7 +1324,7 @@ address_info2sockaddr(socklen_t *length,
#error IPv6 enabled, but getaddrinfo and friends were not found.
#endif
if
(
a
->
ip
&&
mem
chr
(
a
->
ip
->
data
,
':'
,
a
->
ip
->
length
))
if
(
host
&&
str
chr
(
host
,
':'
))
{
debug
(
"address_info2sockaddr: Literal IPv6 used. Failing.
\n
"
);
return
NULL
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment