mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-30 22:21:34 +00:00
Hyper-V: mount the filesystem from the default gateway via eth0
When running in VPN mode eth0 and eth1 have default routes, but eth1 has the lowest metric. However the host CIFS server can only be contacted via eth0, so always use the eth0 address. Signed-off-by: David Scott <dave.scott@docker.com>
This commit is contained in:
parent
0d5cc3597c
commit
6513f33749
@ -377,7 +377,7 @@ static int kvp_cifs_mount(const char *value)
|
||||
char *t;
|
||||
|
||||
char gw[256];
|
||||
char gwcmd[] = "ip route show | awk '/default/ {print $3 }'";
|
||||
char gwcmd[] = "ip route show | grep 'eth0' | awk '/default/ {print $3 }'";
|
||||
|
||||
int i, count;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user