HC -s parameter handling
If HC is started with -s parameter on localhost using unix domain socket, this information is lost, but could be sent over and shown by the MC to identify the HC.
Starting HC:
$./titansim -s 6.0.0.208 6.0.0.208 10322
Current MC behavior:
2021-07-13 14:27:08: MC@toolsserver208: Unix server socket created successfully.
2021-07-13 14:27:08: MC@toolsserver208: Listening on IP address 6.0.0.208 and TCP port 10322.
MC@toolsserver208: New HC connected from 127.0.0.1 [127.0.0.1]. toolsserver208: Linux 4.4.0-130-generic on x86_64.
Here, the IP address of HC is intentionally is filled with 127.0.0.1, however, this could be replaced by the actual value given in the -s parameter of HC.
Expected MC behavior:
2021-07-13 14:27:08: MC@toolsserver208: Unix server socket created successfully.
2021-07-13 14:27:08: MC@toolsserver208: Listening on IP address 6.0.0.208 and TCP port 10322.
MC@toolsserver208: New HC connected from 6.0.0.208 [6.0.0.208]. toolsserver208: Linux 4.4.0-130-generic on x86_64.