Use a more secure PIN config by default

The server used to use the hap default PIN, but using a fixed PIN is not
secure. A random PIN is now generated on first run and displayed to the
console (or journal), similar to how homebridge does it. It can also be
specified explicitly by the user in the config file.
This commit is contained in:
Darell Tan
2023-08-12 01:35:07 +08:00
parent fe5d0ce14c
commit 1fbc4d520a
3 changed files with 73 additions and 0 deletions

View File

@@ -47,6 +47,10 @@ Additionally, these options control networking aspects for the bridge:
These settings are optional and can be left blank.
The pairing code for the server is generated dynamically on first startup
and printed to the console (or systemd journal). Alternatively, you can specify
it using `Pin` in the config file to have it fixed.
License
========