Move public IP address detection out of bash

This commit is contained in:
Michael Vines
2018-06-29 16:49:23 -07:00
committed by Grimes
parent a31889f129
commit 450f271cf7
6 changed files with 52 additions and 30 deletions

View File

@ -169,7 +169,7 @@ Runtime configuration files for the daemon can be found in
#### Leader daemon
```bash
$ sudo snap set solana mode=leader public-ip=$(curl -s http://ifconfig.co)
$ sudo snap set solana mode=leader
```
If CUDA is available:
@ -196,18 +196,18 @@ to port tcp:873, tcp:9900 and the port range udp:8000-udp:10000**
To run both the Leader and Drone:
```bash
$ sudo snap set solana mode=leader+drone public-ip=$(curl -s http://ifconfig.co)
$ sudo snap set solana mode=leader+drone
```
#### Validator daemon
```bash
$ sudo snap set solana mode=validator public-ip=$(curl -s http://ifconfig.co)
$ sudo snap set solana mode=validator
```
If CUDA is available:
```bash
$ sudo snap set solana mode=validator public-ip=$(curl -s http://ifconfig.co) enable-cuda=1
$ sudo snap set solana mode=validator enable-cuda=1
```
By default the validator will connect to **testnet.solana.com**, override