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

[fix] older versions of the ss command do not have the --no-header option #295

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

jyf111
Copy link
Contributor

@jyf111 jyf111 commented Aug 19, 2023

Related to #226 and #214.

Solution: execute the ss command in a temporary container to precheck for ports in use instead.

Side effects: the port precheck process will now take a bit longer, since we need to pull image, create a container, start the container, exec the ss command for each port, and then stop and remove the container.

internal/task/task/checker/network.go Outdated Show resolved Hide resolved
internal/task/task/checker/network.go Outdated Show resolved Hide resolved
internal/task/task/checker/network.go Outdated Show resolved Hide resolved
@jyf111 jyf111 force-pushed the fix-ss-no-header branch 2 times, most recently from 96c3d76 to d74b889 Compare September 13, 2023 10:21
@jyf111 jyf111 requested a review from caoxianfei1 September 13, 2023 10:24
@caoxianfei1
Copy link
Contributor

lgtm

…tion

solution: execute the ss command in a temporary container to precheck for ports in use instead

Signed-off-by: jyf111 <[email protected]>
@caoxianfei1 caoxianfei1 merged commit a13b532 into opencurve:develop Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants