Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhance plugin networking capabilities support IPV6 #191

Merged
merged 4 commits into from
Jun 1, 2024
Merged

Conversation

appleboy
Copy link
Owner

  • Enable SSH server to listen on all interfaces by uncommenting relevant lines in sshd_config
  • Add new protocol and proxy.protocol flags to main.go with usage information and default values
  • Change the Port field type from string to int in plugin.go and plugin_test.go
  • Refactor variable name from host to h and add port variable in plugin.go loop
  • Remove commented-out code and refactor hostPort function in plugin.go
  • Add import for io package in plugin_test.go
  • Add new test function TestPlugin_hostPort with multiple test cases in plugin_test.go

- Enable SSH server to listen on all interfaces by uncommenting relevant lines in `sshd_config`
- Add new `protocol` and `proxy.protocol` flags to `main.go` with usage information and default values
- Change the `Port` field type from `string` to `int` in `plugin.go` and `plugin_test.go`
- Refactor variable name from `host` to `h` and add `port` variable in `plugin.go` loop
- Remove commented-out code and refactor `hostPort` function in `plugin.go`
- Add import for `io` package in `plugin_test.go`
- Add new test function `TestPlugin_hostPort` with multiple test cases in `plugin_test.go`

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
Signed-off-by: appleboy <appleboy.tw@gmail.com>
@appleboy appleboy merged commit fe4a745 into master Jun 1, 2024
7 checks passed
@appleboy appleboy deleted the ipv6 branch June 1, 2024 03:40
@appleboy appleboy mentioned this pull request Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant