Closed eltsai closed 1 year ago
Added test cases for low-level HTTPS and UPNP server emulation:
~/riotpot/test/internal/plugins$ go test upnpd_test.go
ok command-line-arguments 0.012s
~/riotpot/test/internal/plugins$ go test httpsd_test.go
ok command-line-arguments 0.023s
Added two new low-level emulation: HTTPS and UPnP:
HTTPS service (using the same template as HTTP):
Because we are using a self-signed certicate, major browsers will mark the connection as insecure (ERR_CERT_AUTHORITY_INVALID):
Future users can register their own domain and use services like Let's Encrypt or Cloudflare to get a certificate trusted by most root stores.
For UPnP, I implemented it to respond to a M-POST request: