mirror of
https://github.com/go-i2p/checki2cp.git
synced 2025-06-09 17:34:23 -04:00
gofmt
This commit is contained in:
27
checki2cp.go
27
checki2cp.go
@ -38,15 +38,24 @@ func home() string {
|
||||
}
|
||||
|
||||
var (
|
||||
I2CP_HOST string = ""
|
||||
I2CP_PORT string = ""
|
||||
WINDOWS_DEFAULT_LOCATION string = `C:\\Program Files\i2p\i2psvc.exe`
|
||||
I2PD_WINDOWS_DEFAULT_LOCATION string = `C:\\Program Files\I2Pd\i2pd.exe`
|
||||
LINUX_SYSTEM_LOCATION []string = []string{"/usr/bin/i2prouter", "/usr/sbin/i2prouter"}
|
||||
I2PD_LINUX_SYSTEM_LOCATION string = "/usr/sbin/i2pd"
|
||||
I2P_ASUSER_HOME_LOCATION string = inithome(home())
|
||||
HOME_DIRECTORY_LOCATION string = inithome("/i2p/i2prouter")
|
||||
OSX_DEFAULT_LOCATION string = inithome("/Library/Application Support/i2p/clients.config")
|
||||
// I2CP_HOST is the i2cp host
|
||||
I2CP_HOST string = ""
|
||||
// I2CP_PORT is the i2cp port
|
||||
I2CP_PORT string = ""
|
||||
// WINDOWS_DEFAULT_LOCATION
|
||||
WINDOWS_DEFAULT_LOCATION string = `C:\\Program Files\i2p\i2psvc.exe`
|
||||
// I2PD_WINDOWS_DEFAULT_LOCATION
|
||||
I2PD_WINDOWS_DEFAULT_LOCATION string = `C:\\Program Files\I2Pd\i2pd.exe`
|
||||
// LINUX_SYSTEM_LOCATION
|
||||
LINUX_SYSTEM_LOCATION []string = []string{"/usr/bin/i2prouter", "/usr/sbin/i2prouter"}
|
||||
// LINUX_I2PD_SYSTEM_LOCATION
|
||||
I2PD_LINUX_SYSTEM_LOCATION string = "/usr/sbin/i2pd"
|
||||
// I2P_ASUSER_HOME_LOCATION This is the path to the default I2P config directory when running as a user
|
||||
I2P_ASUSER_HOME_LOCATION string = inithome(home())
|
||||
// HOME_DIRECTORY_LOCATION can use config/run from a user's $HOME directory, this is the path to that router
|
||||
HOME_DIRECTORY_LOCATION string = inithome("/i2p/i2prouter")
|
||||
// OSX_DEFAULT_LOCATION
|
||||
OSX_DEFAULT_LOCATION string = inithome("/Library/Application Support/i2p/clients.config")
|
||||
)
|
||||
|
||||
// CheckIC2PIsRunning is frequently the only thing I need a reliable, non-SAM
|
||||
|
Reference in New Issue
Block a user