Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
7eea40c5aa | |||
3bff02397e | |||
b46f04344d |
2
Makefile
2
Makefile
@ -2,7 +2,7 @@
|
||||
|
||||
GO111MODULE=on
|
||||
|
||||
VERSION=0.0.1
|
||||
VERSION=0.0.12
|
||||
USER_GH=eyedeekay
|
||||
|
||||
version:
|
||||
|
16
checki2cp.go
16
checki2cp.go
@ -212,12 +212,22 @@ func ConditionallyLaunchI2P() (bool, error) {
|
||||
if err != nil {
|
||||
return false, err
|
||||
}
|
||||
cmd := exec.Command(path, "start")
|
||||
if err := cmd.Start(); err != nil {
|
||||
return false, fmt.Errorf("I2P router startup failure", err)
|
||||
if strings.HasSuffix(path, "i2prouter") {
|
||||
cmd := exec.Command(path, "start")
|
||||
if err := cmd.Start(); err != nil {
|
||||
return false, fmt.Errorf("I2P router startup failure", err)
|
||||
}
|
||||
} else {
|
||||
cmd := exec.Command(path, "--daemon")
|
||||
if err := cmd.Start(); err != nil {
|
||||
return false, fmt.Errorf("I2P router startup failure", err)
|
||||
}
|
||||
}
|
||||
return true, nil
|
||||
}
|
||||
return true, nil
|
||||
} else {
|
||||
return false, err
|
||||
}
|
||||
} else {
|
||||
return false, fmt.Errorf("I2P is not a default location, please set $I2P environment variable")
|
||||
|
Reference in New Issue
Block a user