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

Use the non priviledged ping mode for unix #148

Open
williamdes opened this issue Jul 20, 2024 · 0 comments
Open

Use the non priviledged ping mode for unix #148

williamdes opened this issue Jul 20, 2024 · 0 comments

Comments

@williamdes
Copy link

match ping(address_ip, Some(pinger_timeout), None, None, None, None) {

Ref: aisk/rust-ping#4

See: https://docs.rs/ping/0.5.2/ping/dgramsock/fn.ping.html

On Unix platforms, SOCK_RAW usage is reserved to privileged users.
Fix "Operation not permitted" error on Linux and macOS.

I guess this will allow me to harden even more the service: #147

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

No branches or pull requests

1 participant