浏览文件
port_others.go
16 行 · 425 B历史下载| 1 | //go:build !darwin && !windows |
| 2 | |
| 3 | // SPDX-FileCopyrightText: Copyright The Lima Authors |
| 4 | // SPDX-License-Identifier: Apache-2.0 |
| 5 | |
| 6 | package hostagent |
| 7 | |
| 8 | import ( |
| 9 | "context" |
| 10 | |
| 11 | "github.com/lima-vm/sshocker/pkg/ssh" |
| 12 | ) |
| 13 | |
| 14 | func forwardTCP(ctx context.Context, sshConfig *ssh.SSHConfig, sshAddress string, sshPort int, local, remote, verb string) error { |
| 15 | return forwardSSH(ctx, sshConfig, sshAddress, sshPort, local, remote, verb, false) |
| 16 | } |

