Dragonfly2
Dragonfly2 copied to clipboard
Peer's upload server cannot run correctly in 'force' TLSPolicy
Bug report:
- upload server cannot autoissue server cert/key issue 1886
- even with force TLSPolicy, upload server can still serve HTTP requests, as the code show here https://github.com/dragonflyoss/Dragonfly2/blob/505d53b83c3000eff62cfda00a062c11b2b77bae/client/daemon/upload/upload_manager.go#L115
Expected behavior:
- upload can autoissue server cert/key for https
- when using force mode, upload only handles HTTPS requests
How to reproduce it:
Environment:
- Dragonfly version:
- OS:
- Kernel (e.g.
uname -a
): - Others: