Every time a new peer comes online we should broadcast that to the other nodes.
The only hard part is working out how to handle this, for the moment we could assume we'll invoke a script every time a node joins:
/etc/simple-vpn/node-available
With $CLIENT_NAME + $CLIENT_IP. However the better case would be to execute only a single script one-time. Passing a list of an arbitrary pair of name/IPs is hard though if we want to use the environment.
Perhaps we'll need JSON, but that suddenly means we can't use a bash-script easily..
Every time a new peer comes online we should broadcast that to the other nodes.
The only hard part is working out how to handle this, for the moment we could assume we'll invoke a script every time a node joins:
/etc/simple-vpn/node-available
With
$CLIENT_NAME
+$CLIENT_IP
. However the better case would be to execute only a single script one-time. Passing a list of an arbitrary pair of name/IPs is hard though if we want to use the environment.Perhaps we'll need JSON, but that suddenly means we can't use a bash-script easily..