fix readme
This commit is contained in:
@ -28,7 +28,6 @@ generate tunnels from snippets of i2pd tunnel configuration files. That's kinda
|
||||
useful. It appears to be more-or-less compatible with i2pd's tunnels.conf
|
||||
format, but it only supports the following options:
|
||||
|
||||
[EXAMPLE-CONFIG]
|
||||
host = 127.0.0.1
|
||||
port = 22
|
||||
inbound.length = 6
|
||||
@ -51,6 +50,9 @@ format, but it only supports the following options:
|
||||
i2cp.accessList = BASE64KEYSSEPARATEDBY,COMMAS
|
||||
keys = ssh.dat
|
||||
|
||||
Also it doesn't support sections. Didn't realize that at first. Will address
|
||||
soon.
|
||||
|
||||
## Quick-And-Dirty i2p-enabled golang web applications
|
||||
|
||||
Normal web applications can easily add the ability to serve itself over i2p by
|
||||
|
@ -31,7 +31,6 @@ generate tunnels from snippets of i2pd tunnel configuration files. That's kinda
|
||||
useful. It appears to be more-or-less compatible with i2pd's tunnels.conf
|
||||
format, but it only supports the following options:
|
||||
|
||||
[EXAMPLE-CONFIG]
|
||||
host = 127.0.0.1
|
||||
port = 22
|
||||
inbound.length = 6
|
||||
@ -54,6 +53,9 @@ format, but it only supports the following options:
|
||||
i2cp.accessList = BASE64KEYSSEPARATEDBY,COMMAS
|
||||
keys = ssh.dat
|
||||
|
||||
Also it doesn't support sections. Didn't realize that at first. Will address
|
||||
soon.
|
||||
|
||||
## Quick-And-Dirty i2p-enabled golang web applications
|
||||
|
||||
Normal web applications can easily add the ability to serve itself over i2p by
|
||||
@ -106,12 +108,12 @@ func main() { func main() {
|
||||
[This tiny file server taken from here and used for this example](https://gist.github.com/paulmach/7271283)
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlteuncACgkQ11wDs5te
|
||||
FOFxbgf7BuYQFK30ytBqaBdRAwfNPbPjAxObOuBrHDOg9I5Ff7lyHItVkw9vP3lc
|
||||
1VebpB0v7ske24zsXG8duS4QyhWpOlXKupfKJg6EtyIvdVCXY4U7iVMvsWOffXvZ
|
||||
fYXPS3a2O9KShxCnMGAobWKWrGiUfKF2d5JliIKNhpOfoZDiUWITdi2HxjjsQvk6
|
||||
FtcRO2cV04HyzTiW1Y8WCYl2xPCmYK/0Kw/lq3dc3qDt9guagoh7NT8np+Zv9N9l
|
||||
SgogxH6q76xfJasHVF9LhucLIKx0DYac0bbB182ihDu8vM4ZLz2VhJaQuhU5HiiE
|
||||
eueNoUlP3GiCKgb1mLS5ysdUaJffkg==
|
||||
=TekD
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltevU8ACgkQ11wDs5te
|
||||
FOHaYAf/R+hKitVbnBrLVDksBcqsjiuZCrDNDKPpyZZ6pbHJ2CPRlpIk1YoVnXTl
|
||||
jBzTIya8a+vc9m/hBYTVlGeN8/zO1T0V8vjijWv5WPWwacgRYJ1cqXyCDTHUuXgy
|
||||
yLD5LlsT0ltk0e3WLJ0dXBJYJ0Ace4HXi+qDMkSfHcn2gepUopzIFsjLBL8d8qU3
|
||||
KfQc8TCoxnAKsSns2NELexZn3kU9nEmJq1gJQL1TWXlCoUUlAB3ONXFBF19OzUdL
|
||||
F5OwRoYz5AOZB+StD7fO1x8ySvLZKXr1T4kHlKsUa5VMp6F1LVKnJCwzrIXmay5S
|
||||
hz28Qtuu8CRGPG7uBoTb+XibhC8gpw==
|
||||
=iX65
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -82,11 +82,11 @@ func NewI2PTunConf(iniFile string) (*Conf, error) {
|
||||
var c Conf
|
||||
c.config = goini.New()
|
||||
if iniFile != "none" {
|
||||
log.Println(iniFile)
|
||||
err = c.config.ParseFile(iniFile)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if v, ok := c.config.GetBool("keys"); ok {
|
||||
c.saveFile = v
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user