Skip to content

Commit 1f963a3

Browse files
committed
net/gvisor-tap-vsock: allow 169.254.169.254
Fix issue 594 Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent f742451 commit 1f963a3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pkg/network/gvisortapvsock/gvisortapvsock.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ func (d *parentDriver) setupVirtualNetwork(gateway string) (*virtualnetwork.Virt
134134
// and allows for easier debugging and identification of the gateway interface.
135135
GatewayMacAddress: "5a:94:ef:e4:0c:dd",
136136
DHCPStaticLeases: map[string]string{},
137+
// Allow 169.254.169.254, as in other network drivers
138+
Ec2MetadataAccess: true,
137139
}
138140

139141
if !d.disableHostLoopback {

0 commit comments

Comments
 (0)