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

@@ -134,12 +134,12 @@ use of INI-like labels. For now, my workaround is to comment out the labels
until I deal with this.
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltj5nsACgkQ11wDs5te
FOGDmwgAljJXGvf/uGt9CbAcwlSWyOyckfNc3MUwYWQ9ebPtKnpR6Q47eaC8kzkC
AOkgbvw1PL5V/KVUYkQpbnxbqXA5Kttx44Hj6ila3nunovuRCHX12CMoXoF2Y2fg
4MWgkS+sh9Uke9xjlo1lpMyyxDgbcP4xE7XlDZXwa178qED+XKFISSSMluwJK6da
CO1IpR3Tx15yV1McjIDwH33C40wVxytmVh4efAhX5zh+IQsRwa0QF54bjVnhJudZ
zzKkJrMbUSn8WXTko9eZBnnhvFdU1LNFcIHRDOGhMIWpsRoI9EWaI19uRVRqLAb1
Ucmp9jsVBlhPl8KxKOe0m6fsDybQqQ==
=Dh84
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltpK2AACgkQ11wDs5te
FOHDYQf9EXZ6FASI5f72Y2d2FVdriBwlyOBcNwh8ro3mTqYxPFAkIUxjxko1B50U
nPe3gMUsdWqkAmjZe5CK5C9wmU6x9nVkjbc9sUBL3douBZm899Ro3KbMHkhGbLFk
xTd+k+RWTU0gWxc065pDPD71Mu7t7tnk1qXJkt+NyQZdz+bWz4JQIkMIdbCHE/d7
vCr/WQ1u+msahTl6899PBl4D7Te7UJ8jb1wl7j7bWEQqGN7j20FsuT+UQfHsOdtz
v5ha7q6h5DzI21cj0Cyevh7wU+JKWAwlISXIZ4P6/ZsHKXcGsnsYEguixLQpDLkJ
pq9L6X5KIdTlMpSR0WxcK4/cTMqp8w==
=Ay3M
-----END PGP SIGNATURE-----

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,

View File

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