cloudflarearchive / odoh-server-go

Oblivious DoH server in Go
MIT License
66 stars 17 forks source link

Check that key and cert files exist #17

Open lukevalenta opened 3 years ago

lukevalenta commented 3 years ago

As discussed in https://github.com/cloudflare/odoh-server-go/pull/16, it might be a good idea to check if the key and cert files passed in as environment variables exist before calling http.ListenAndServeTLS.

This may not be necessary if http.ListenAndServeTLS fails with an appropriate error when the files do not exist.

cc @chris-wood