Dragonfly2 icon indicating copy to clipboard operation
Dragonfly2 copied to clipboard

Peer's upload server cannot run correctly in 'force' TLSPolicy

Open karlhjm opened this issue 6 months ago • 1 comments

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:

karlhjm avatar Aug 19 '24 10:08 karlhjm