Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-Server
Commits
f3d717e9
Commit
f3d717e9
authored
Feb 12, 2003
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase ip buffer sizes so that ipv6 has a better chance of working.
svn path=/trunk/net/; revision=4339
parent
9acef480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/net/sock.c
src/net/sock.c
+2
-2
No files found.
src/net/sock.c
View file @
f3d717e9
...
...
@@ -490,7 +490,7 @@ sock_t sock_connect_wto(const char *hostname, const int port, const int timeout)
int
sock_try_connection
(
int
sock
,
const
char
*
hostname
,
const
unsigned
port
)
{
struct
sockaddr_in
sin
,
server
;
char
ip
[
2
0
];
char
ip
[
4
0
];
if
(
!
hostname
||
!
hostname
[
0
]
||
port
==
0
)
return
-
1
;
...
...
@@ -498,7 +498,7 @@ int sock_try_connection (int sock, const char *hostname, const unsigned port)
memset
(
&
sin
,
0
,
sizeof
(
struct
sockaddr_in
));
memset
(
&
server
,
0
,
sizeof
(
struct
sockaddr_in
));
if
(
!
resolver_getip
(
hostname
,
ip
,
2
0
))
if
(
!
resolver_getip
(
hostname
,
ip
,
4
0
))
{
sock_close
(
sock
);
return
-
1
;
...
...
Write
Preview
Markdown
is supported
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