Commit 09996d5 1 parent b9fe6aa commit 09996d5 Copy full SHA for 09996d5
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,15 +267,15 @@ func getPoliciesFromRuntimeCfg(nwCfg *cni.NetworkConfig) []policy.Policy {
267
267
// To support hostport policy mapping
268
268
// uint32 NatFlagsLocalRoutedVip = 1
269
269
if net .ParseIP (mapping .HostIp ).To4 () != nil {
270
- rawPolicy , _ := json .Marshal (& hnsv2.PortMappingPolicySetting {
270
+ rawPolicy , _ := json .Marshal (& hnsv2.PortMappingPolicySetting { // nolint
271
271
ExternalPort : uint16 (mapping .HostPort ),
272
272
InternalPort : uint16 (mapping .ContainerPort ),
273
273
VIP : mapping .HostIp ,
274
274
Protocol : protocol ,
275
275
Flags : hnsv2 .NatFlagsLocalRoutedVip ,
276
276
})
277
277
278
- hnsv2Policy , _ := json .Marshal (& hnsv2.EndpointPolicy {
278
+ hnsv2Policy , _ := json .Marshal (& hnsv2.EndpointPolicy { // nolint
279
279
Type : hnsv2 .PortMapping ,
280
280
Settings : rawPolicy ,
281
281
})
You can’t perform that action at this time.
0 commit comments