added base64 function

This commit is contained in:
idk
2018-08-07 01:17:23 -04:00
parent 0990175a0e
commit db7e8bb3dd
3 changed files with 18 additions and 8 deletions

View File

@@ -114,6 +114,11 @@ func (f *SAMForwarder) Base32() string {
return f.SamKeys.Addr().Base32()
}
//Base64 returns the base64 address where the local service is being forwarded
func (f *SAMForwarder) Base64() string {
return f.SamKeys.Addr().Base64()
}
//Serve starts the SAM connection and and forwards the local host:port to i2p
func (f *SAMForwarder) Serve() error {
if f.publishStream, err = f.samConn.NewStreamSession(f.TunName, f.SamKeys,