Added initializer to tunconf

This commit is contained in:
idk
2018-08-14 20:34:22 -04:00
parent 943e810a60
commit 245fd018f0
4 changed files with 16 additions and 8 deletions

View File

@ -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/311wDs5teFOEFAltudAoACgkQ11wDs5te
FOFFlgf8CzDztqDpOKzY9DaqH7Dj2/lMFeYU4p7bgjz3gE8vNTR63Y2cO6/FxWh6
6RR8mG7FsvaGMMaHtA3gw3/uNRb8wyteNMJJOuj82WNMvLLRapXum7w4EUxg+O79
jJ68l9a/SsnquDt/RQB1v/Px2uhnL8VoI1s4cDcedW6cJKtCJlZRYprf3AmDNuVZ
EZLs0agmmtIcs4rzA97rQoYU16tb3oPTmXsjT1+lviLAyTFQvTPM7SM8moe0/WVy
XOUxr+e7qqsyQEG1w0iQCMg6TCyggOjbOAzpie0LpUMExgbKVGLxx4HymF3JoeTw
A67DBYRlZfAG3uNpnvGk83q/EoLvZw==
=5vIx
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltzdQsACgkQ11wDs5te
FOFl8gf/dYtfwlc89vT1gfT5pWr2gDkEAhvo/43ZEM3M3dNOmufOBTn34i5FDr3V
91m7+L8f/qSx4muq8E9XRdX3ytL8dd88vmRmlO7/GOfCdKcofWekjFKtu/zbDxR0
QQUdtHblk18VP9BQTG+Jopl2tObL/9oQD2JXHdyHHJ5lRfkGgskNxh9jN3TWXwHF
hHIGSz4R6Du21RHAJsbip1JpB1fWmtDxOgMYJavapOIROKex6pzr4piCGFHOcK3D
r8Ws0vRnfZiwv3rV4iriqHQ5EDC+KL0DLqL1i8ZUqxIFl1Bj4lS1ObNBUoO8w+D9
OEH9w+xIPnTzFkjS1IWRJPGnoKAsvg==
=gKVI
-----END PGP SIGNATURE-----

View File

@ -668,6 +668,12 @@ func (c *Conf) I2PINILoad(iniFile string) (error) {
return nil
}
// NewI2PBlankTunConf returns an empty but intialized tunconf
func NewI2PBlankTunConf() *Conf {
var c Conf
return &c
}
// NewI2PTunConf returns a Conf structure from an ini file, for modification
// before starting the tunnel
func NewI2PTunConf(iniFile string) (*Conf, error) {

View File

@ -0,0 +1 @@
package samforwarder

1
forwarder-client.go Normal file
View File

@ -0,0 +1 @@
package samforwarder