Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
5a76f7f4
Commit
5a76f7f4
authored
Jan 06, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* network: vlc_UrlParse should now accept ipv6 ip (untested).
parent
1955153b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
include/network.h
include/network.h
+14
-2
No files found.
include/network.h
View file @
5a76f7f4
...
...
@@ -2,7 +2,7 @@
* network.h: interface to communicate with network plug-ins
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: network.h,v 1.
7 2004/01/06 23:03:16
fenrir Exp $
* $Id: network.h,v 1.
8 2004/01/06 23:11:47
fenrir Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -105,7 +105,19 @@ static inline void vlc_UrlParse( vlc_url_t *url, char *psz_url, char option )
url
->
psz_host
[
p
-
psz_parse
]
=
'\0'
;
}
p2
=
strchr
(
url
->
psz_host
,
':'
);
if
(
*
url
->
psz_host
==
'['
)
{
/* Ipv6 address */
p2
=
strchr
(
url
->
psz_host
,
']'
);
if
(
p2
)
{
p2
=
strchr
(
p2
,
':'
);
}
}
else
{
p2
=
strchr
(
url
->
psz_host
,
':'
);
}
if
(
p2
)
{
*
p2
++
=
'\0'
;
...
...
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