]> git.sesse.net Git - vlc/commitdiff
Fix UDP unicast access when both IPv6 and non-default port are used
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 16:29:30 +0000 (16:29 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 8 Mar 2005 16:29:30 +0000 (16:29 +0000)
modules/gui/wxwindows/open.cpp

index 161dfd739d7ca4a50605741b0108576d4c72b44e..6b1578177b039ca3abab2a7a6bc675f71b5fb56d 100644 (file)
@@ -879,15 +879,15 @@ void OpenDialog::UpdateMRL( int i_access_method )
         switch( i_net_type )
         {
         case 0:
-            mrltemp = wxT("udp://");
+            mrltemp = wxT("udp://@");
             if ( net_ipv6->GetValue() )
             {
-                mrltemp += wxT("@[::]");
+                mrltemp += wxT("[::]");
             }
             if( i_net_ports[0] !=
                 config_GetInt( p_intf, "server-port" ) )
             {
-                mrltemp += wxString::Format( wxT("@:%d"), i_net_ports[0] );
+                mrltemp += wxString::Format( wxT(":%d"), i_net_ports[0] );
             }
 
             caching_name = wxT("udp-caching");