mirror of
https://github.com/lucheng0127/virtuallan.git
synced 2025-09-27 04:55:51 +08:00

1. Use SetAESKey to set AES key 2. Check config.yaml and make port and log info with default value 3. Make will generate new random AES key in config.yaml
5 lines
151 B
Bash
Executable File
5 lines
151 B
Bash
Executable File
#!/bin/bash
|
|
|
|
key=`/usr/bin/hexdump -vn8 -e'4/4 "%08X" 1 "\n"' /dev/urandom | sed 's/ //g'`
|
|
sed -i "s/B5FFCEE73EF298A4/$key/g" ../../config/config.yaml
|