[uri] Allow tftp_uri() to construct a URI with a custom port

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2015-02-06 12:18:18 +00:00
parent 2dfdcae938
commit e2a26f76de
4 changed files with 30 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ static struct uri * parse_next_server_and_filename ( struct in_addr next_server,
/* Construct a TFTP URI for the filename, if applicable */
if ( next_server.s_addr && filename[0] && ! uri_is_absolute ( uri ) ) {
uri_put ( uri );
uri = tftp_uri ( next_server, filename );
uri = tftp_uri ( next_server, 0, filename );
if ( ! uri )
return NULL;
}