set enough defaults to validate new config
This commit is contained in:
@ -58,6 +58,7 @@ func (f *Conf) print() []string {
|
|||||||
"i2cp.closeIdleTime=" + fmt.Sprintf("%d", f.CloseIdleTime),
|
"i2cp.closeIdleTime=" + fmt.Sprintf("%d", f.CloseIdleTime),
|
||||||
"i2cp.messageReliability=" + f.MessageReliability,
|
"i2cp.messageReliability=" + f.MessageReliability,
|
||||||
"i2cp.encryptLeaseSet=" + fmt.Sprintf("%t", f.EncryptLeaseSet),
|
"i2cp.encryptLeaseSet=" + fmt.Sprintf("%t", f.EncryptLeaseSet),
|
||||||
|
"i2cp.leaseSetEncType=" + fmt.Sprintf("%s", f.LeaseSetEncType),
|
||||||
lsk, lspk, lspsk,
|
lsk, lspk, lspsk,
|
||||||
f.accesslisttype(),
|
f.accesslisttype(),
|
||||||
f.accesslist(),
|
f.accesslist(),
|
||||||
|
@ -247,6 +247,7 @@ func (c *Conf) I2PINILoad(iniFile string, label ...string) error {
|
|||||||
c.SetTunName(label...)
|
c.SetTunName(label...)
|
||||||
c.SetSigType(label...)
|
c.SetSigType(label...)
|
||||||
c.SetEncryptLease(label...)
|
c.SetEncryptLease(label...)
|
||||||
|
c.SetLeaseSetEncType(label...)
|
||||||
c.SetLeasesetKey(label...)
|
c.SetLeasesetKey(label...)
|
||||||
c.SetLeasesetPrivateKey(label...)
|
c.SetLeasesetPrivateKey(label...)
|
||||||
c.SetLeasesetPrivateSigningKey(label...)
|
c.SetLeasesetPrivateSigningKey(label...)
|
||||||
@ -297,6 +298,7 @@ func NewI2PBlankTunConf() *Conf {
|
|||||||
c.TargetHost = "127.0.0.1"
|
c.TargetHost = "127.0.0.1"
|
||||||
c.TargetPort = "0"
|
c.TargetPort = "0"
|
||||||
c.ClientDest = "idk.i2p"
|
c.ClientDest = "idk.i2p"
|
||||||
|
c.LeaseSetEncType = "4,0"
|
||||||
c.Config = &goini.INI{}
|
c.Config = &goini.INI{}
|
||||||
c.Config = goini.New()
|
c.Config = goini.New()
|
||||||
c.Config.Parse([]byte("[client]\nsamhost=\"127.0.0.1\"\nsamport=\"7656\"\n"), "\n", "=")
|
c.Config.Parse([]byte("[client]\nsamhost=\"127.0.0.1\"\nsamport=\"7656\"\n"), "\n", "=")
|
||||||
|
Reference in New Issue
Block a user