Embed an i2pd router, and launch it as a last resort.
This commit is contained in:
7
main.go
7
main.go
@ -16,6 +16,8 @@ import (
|
||||
"github.com/itchio/headway/state"
|
||||
tbget "i2pgit.org/idk/i2p.plugins.tor-manager/get"
|
||||
tbserve "i2pgit.org/idk/i2p.plugins.tor-manager/serve"
|
||||
|
||||
i2pd "github.com/eyedeekay/go-i2pd/goi2pd"
|
||||
)
|
||||
|
||||
/*
|
||||
@ -164,6 +166,11 @@ func main() {
|
||||
}
|
||||
} else {
|
||||
log.Fatal("Failed to run I2P", err)
|
||||
closer := i2pd.InitI2PSAM()
|
||||
defer closer()
|
||||
go i2pd.StartI2P()
|
||||
//time.Sleep(time.Hour)
|
||||
defer i2pd.StopI2P()
|
||||
//TODO: Link libi2pd and start our own router if we cant find one anywhere.
|
||||
//TODO: loop again until TestHTTPDefaultProxy is up
|
||||
}
|
||||
|
Reference in New Issue
Block a user