Doing it the other way. That's better.
This commit is contained in:
@ -166,12 +166,12 @@ not that important. I'll have to look for a way to make this behavior
|
||||
configurable though.
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltucUIACgkQ11wDs5te
|
||||
FOHFUwgAqRf9UdXhovRamoX1e/ba0qTPWIpu58pWgrLHD/ztBrfQ0uB1S8UP+ZTP
|
||||
IQ3R38pDEHfDejTQycog8r2Hla0Cc8PI4Z2zC3rHrfqhjTb2oBhkqVOqvUAZWACe
|
||||
3S2ioarvgWPeLLirqplNdh9zF7V4pMtcMULLHX4+9XTIytuGpFfAyNXOh36gDtWM
|
||||
eyw7WOsGTBNL7Z5swLMtP8aWfGAHMXXSG9llOtI3KsaGQDQidPwJRO4ZWdWOSPTE
|
||||
RESNRJLnDTGPxgui1+43cpd5iLCG4Aw+AYHVUpaGFqkyaccm+Six5uhnk7umV48l
|
||||
/d8iZ7PtCbN0VcbpRCTPANYJL1AQrw==
|
||||
=0dVS
|
||||
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltudAoACgkQ11wDs5te
|
||||
FOFFlgf8CzDztqDpOKzY9DaqH7Dj2/lMFeYU4p7bgjz3gE8vNTR63Y2cO6/FxWh6
|
||||
6RR8mG7FsvaGMMaHtA3gw3/uNRb8wyteNMJJOuj82WNMvLLRapXum7w4EUxg+O79
|
||||
jJ68l9a/SsnquDt/RQB1v/Px2uhnL8VoI1s4cDcedW6cJKtCJlZRYprf3AmDNuVZ
|
||||
EZLs0agmmtIcs4rzA97rQoYU16tb3oPTmXsjT1+lviLAyTFQvTPM7SM8moe0/WVy
|
||||
XOUxr+e7qqsyQEG1w0iQCMg6TCyggOjbOAzpie0LpUMExgbKVGLxx4HymF3JoeTw
|
||||
A67DBYRlZfAG3uNpnvGk83q/EoLvZw==
|
||||
=5vIx
|
||||
-----END PGP SIGNATURE-----
|
||||
|
@ -502,7 +502,7 @@ func (c *Conf) GetReduceIdleQuantity(arg, def int) int {
|
||||
}
|
||||
|
||||
// I2PINILoad loads variables from an ini file into the Conf data structure.
|
||||
func I2PINILoad(iniFile string, c *Conf) (error) {
|
||||
func (c *Conf) I2PINILoad(iniFile string) (error) {
|
||||
var err error
|
||||
if iniFile != "none" {
|
||||
c.config = goini.New()
|
||||
@ -673,7 +673,7 @@ func I2PINILoad(iniFile string, c *Conf) (error) {
|
||||
func NewI2PTunConf(iniFile string) (*Conf, error) {
|
||||
var err error
|
||||
var c Conf
|
||||
if err = I2PINILoad(iniFile, &c); err != nil {
|
||||
if err = c.I2PINILoad(iniFile); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &c, nil
|
||||
|
@ -1,10 +1,10 @@
|
||||
|
||||
##Example configuration file, all crazy options enabled. Intended for adjustment.
|
||||
|
||||
#host = 127.0.0.1
|
||||
#port = 22
|
||||
#inbound.length = 6
|
||||
#outbound.length = 6
|
||||
host = 127.0.0.1
|
||||
port = 22
|
||||
inbound.length = 6
|
||||
outbound.length = 6
|
||||
#inbound.lengthVariance = 6
|
||||
#outbound.lengthVariance = 6
|
||||
#inbound.backupQuantity = 5
|
||||
|
Reference in New Issue
Block a user