-
Notifications
You must be signed in to change notification settings - Fork 70
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/add docker test for wg #361
Conversation
clash_lib/src/proxy/wg/wireguard.rs
Outdated
tracing::debug!("config: private key: {:x?}, endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}", | ||
config.private_key.to_bytes(), config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tracing::debug!("config: private key: {:x?}, endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}", | |
config.private_key.to_bytes(), config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits); | |
tracing::debug!("config: endpoint public key: {:x?}, remote endpoint: {}, source peer ip: {}, source peer ipv6: {:?}, keepalive seconds: {:?}, allowed ips: {:?}, reserved bits: {:?}", | |
config.endpoint_public_key.to_bytes(), config.remote_endpoint, config.source_peer_ip, config.source_peer_ipv6, config.keepalive_seconds, config.allowed_ips, config.reserved_bits); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't print out the private key in logs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, it's a line for debug, forgot to delete
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
great |
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
Motivation: I wish to change some code in wireguard module, but the test is hard, i can only test it by running the whole app
📝 Changelog
feat: add docker test for wg
☑️ Self-Check before Merge