Commit a510369
authored
Support the local backend with the in-server proxy (#2858)
Fix this error when requesting a service running
on the local backend and served by the in-server
proxy:
```python
File "/dstack/src/dstack/_internal/proxy/lib/services/service_connection.py", line 82, in open
await self._tunnel.aopen()
File "/dstack/src/dstack/_internal/core/services/ssh/tunnel.py", line 204, in aopen
raise get_ssh_error(stderr)
dstack._internal.core.errors.SSHError: Connection closed by UNKNOWN port 65535
```
If the replica runs on the local backend, connect
directly to the container, without proxy jumping
through the shim host. Similar to workarounds in
`SSHAttach` and `runner_ssh_tunnel`.1 parent c876047 commit a510369
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| 90 | + | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
0 commit comments