Skip to content

Commit ff77f02

Browse files
committed
Fix handling of gateway tunnels
1 parent e624737 commit ff77f02

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/agent_core/src/network/origin_lookup.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ impl OriginResource {
192192
}
193193
}
194194
OriginTarget::Port { ip, port } => {
195+
if self.port_count == 0 {
196+
return Some(SocketAddr::new(*ip, *port));
197+
}
198+
195199
if self.port_count <= port_offset {
196200
return None;
197201
}

0 commit comments

Comments
 (0)