fixed some names

This commit is contained in:
idk
2018-09-17 23:46:59 -04:00
parent 3979d87390
commit 364a35c10a
7 changed files with 16 additions and 17 deletions

View File

@ -80,12 +80,12 @@ I'm eventually going to make the manager implement net.Conn. This won't be
exposed in the default application probably though, but rather as a library. exposed in the default application probably though, but rather as a library.
-----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlugc5QACgkQ11wDs5te iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAlugdTMACgkQ11wDs5te
FOGJ6gf+LMxjFYJJdATurdL2nA4XRfGUwCHQ6NcI2YaRl1ad6a89uJyoVupYcR5/ FOGGTggAqP7jEXjl0dhdxo8ANB2IliJtPRSLvWNk3n+f2XsHYl80cvwjAJ+fZ7d9
r+PJT7G0YPbKvdcbnuS8ybHtR1ZtKZwmZiuVuSzCI6CwTweeq4vQ1mcUJS63m4Fd x7rZ30vFwzvGLEt0RB+GU4vbVbuOe4iJL+KbfQJ64MT31U/A53bUSOG2+rOB7asp
EtuRDXwzZEce9zdFKWjVl5r1owfgqWvN9m/RmM35DRZ4frPObuZyaLFNuOa7IMLD DTcEsLWNUCzohMokem2tvVprldk/IfyHPp7t+PyfzQRNcewPunTJE2Jx1ymzhMhZ
lsgLjuVlmPGC4r6N6j13AE3hqNnxNwexcxvgdAMBFhIhyqPHmWz7WrX9clx5QZG2 IUcC/xSAGf5VsT/0ADLDFiR/mq4VpMpnky6Ch3W22RZFGO8dfnQy+v1RbZVmukd/
4uli0I6TqhG0DA+JuUj+PDLArVEKDQaopDWAd7le+oGrfMG5qjguzEScDWKbgbZT WHf6Q5hhxfrFXZHEVtqKN9t0W//VRzBqPPybjx+QD3WZqVxM5lf0EA8qKNZ3FA21
xEAjuk9JoW6DcS1bsuT03F33GVkFdg== I1BoQGph7VgpZbEI8VhlAK4tba8bdg==
=lvbg =T7Xt
-----END PGP SIGNATURE----- -----END PGP SIGNATURE-----

View File

@ -260,7 +260,7 @@ func NewSAMForwarderFromConf(config *Conf) (*samforwarder.SAMForwarder, error) {
samforwarder.SetAccessListType(config.AccessListType), samforwarder.SetAccessListType(config.AccessListType),
samforwarder.SetAccessList(config.AccessList), samforwarder.SetAccessList(config.AccessList),
samforwarder.SetMessageReliability(config.MessageReliability), samforwarder.SetMessageReliability(config.MessageReliability),
samforwarder.SetPassword(config.KeyFilePath), samforwarder.SetKeyFile(config.KeyFilePath),
//samforwarder.SetTargetForPort443(config.TargetForPort443), //samforwarder.SetTargetForPort443(config.TargetForPort443),
) )
} }
@ -379,7 +379,7 @@ func NewSAMSSUForwarderFromConf(config *Conf) (*samforwarderudp.SAMSSUForwarder,
samforwarderudp.SetAccessListType(config.AccessListType), samforwarderudp.SetAccessListType(config.AccessListType),
samforwarderudp.SetAccessList(config.AccessList), samforwarderudp.SetAccessList(config.AccessList),
samforwarderudp.SetMessageReliability(config.MessageReliability), samforwarderudp.SetMessageReliability(config.MessageReliability),
samforwarderudp.SetPassword(config.KeyFilePath), samforwarderudp.SetKeyFile(config.KeyFilePath),
) )
} }
return nil, nil return nil, nil

View File

@ -381,7 +381,7 @@ func SetClientAccessList(s []string) func(*SAMClientForwarder) error {
} }
} }
//SetPassword sets //SetKeyFile sets
func SetClientPassword(s string) func(*SAMClientForwarder) error { func SetClientPassword(s string) func(*SAMClientForwarder) error {
return func(c *SAMClientForwarder) error { return func(c *SAMClientForwarder) error {
c.passfile = s c.passfile = s

View File

@ -402,8 +402,8 @@ func SetAccessList(s []string) func(*SAMForwarder) error {
} }
*/ */
//SetPassword sets //SetKeyFile sets
func SetPassword(s string) func(*SAMForwarder) error { func SetKeyFile(s string) func(*SAMForwarder) error {
return func(c *SAMForwarder) error { return func(c *SAMForwarder) error {
c.passfile = s c.passfile = s
return nil return nil

View File

@ -61,7 +61,6 @@ func Decrypt(i2pkeypath, aeskeypath string) error {
} }
ioutil.WriteFile(i2pkeypath, crypted, 644) ioutil.WriteFile(i2pkeypath, crypted, 644)
} }
//crypted
} }
} }
return nil return nil

View File

@ -373,7 +373,7 @@ func SetClientAccessList(s []string) func(*SAMSSUClientForwarder) error {
} }
} }
//SetPassword sets //SetKeyFile sets
func SetClientPassword(s string) func(*SAMSSUClientForwarder) error { func SetClientPassword(s string) func(*SAMSSUClientForwarder) error {
return func(c *SAMSSUClientForwarder) error { return func(c *SAMSSUClientForwarder) error {
c.passfile = s c.passfile = s

View File

@ -373,8 +373,8 @@ func SetAccessList(s []string) func(*SAMSSUForwarder) error {
} }
} }
//SetPassword sets //SetKeyFile sets
func SetPassword(s string) func(*SAMSSUForwarder) error { func SetKeyFile(s string) func(*SAMSSUForwarder) error {
return func(c *SAMSSUForwarder) error { return func(c *SAMSSUForwarder) error {
c.passfile = s c.passfile = s
return nil return nil