+ /* int len = path - ++port;
+ msg_Err( p_access, "\"%.*s\" HTTP port ignored", len, port );
+ msg_Info( p_access, "Pass --%s-port=%.*s on the command line "
+ "instead.", strcasecmp( p_access->psz_access, "https" )
+ ? "http" : "https", len, port ); */
+ port++;
+
+ int bind_port = atoi( port );
+ if( bind_port > 0 )
+ {
+ const char *var = strcasecmp( p_access->psz_access, "https" )
+ ? "http-port" : "https-port";
+ var_Create( p_access, var, VLC_VAR_INTEGER );
+ var_SetInteger( p_access, var, bind_port );
+ }