Commit 710371b
committed
pkg/hostagent: Support static port forwarding to direct guest IP
Since port forwarding to the guest IP directly does not require guest agent,
we can support static port forwarding if `DialContextToGuestIP()` returns non-nil.
pkg/portfwd:
- Add `Forwarder.Forward()`
pkg/hostagent:
- Use `a.grpcPortForwarder.Forward()` if `DialContextToGuestIP()` returns non-nil.
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>
amend static port forward
Signed-off-by: Norio Nomura <norio.nomura@gmail.com>1 parent 31892c8 commit 710371b
2 files changed
+24
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
798 | 798 | | |
799 | 799 | | |
800 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
801 | 804 | | |
802 | 805 | | |
803 | 806 | | |
| |||
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
812 | | - | |
813 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
814 | 830 | | |
815 | 831 | | |
816 | 832 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
0 commit comments