Allow non-default ports for HTTP requests

Add support for passing ports in HTTP requests. This takes the form of:
(http,serverip:portnum)/file
This commit is contained in:
Matthew Garrett 2016-01-07 17:27:15 -08:00
parent 297e11980b
commit 78db6bcf33
3 changed files with 16 additions and 3 deletions

View file

@ -264,6 +264,7 @@ typedef struct grub_net
grub_fs_t fs;
int eof;
int stall;
int port;
} *grub_net_t;
extern grub_net_t (*EXPORT_VAR (grub_net_open)) (const char *name);