Fix parenthesis

This commit is contained in:
idk
2018-07-26 17:50:46 -04:00
parent c772694b79
commit 787226e28c
2 changed files with 14 additions and 14 deletions

View File

@ -1,9 +1,8 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
# ephemeral-eepSite-SAM
An experiment to run an eepSite with an intentionally temporary destination
using the SAM bridge. Think the netcat web server trick, but with SAM.
# sam-forwarder
Forward a local port to i2p over the SAM API.
## building
@ -22,12 +21,12 @@ So, to serve an eepSite version of a local service on port 8080 -
./bin/ephsite -addr=127.0.0.1:8080
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltaQDEACgkQ11wDs5te
FOG8wAgAh1igA7SkGh9+iM31KH0JUyHo0F0Do57qhfIkSNx6tGrHmeN/ywghmtcT
0iglZ22bJC0DIhgDZA7f9DxoR06JxojCGJ4qNKUgVEPtNsOTEQ8wdbG2vM4F+Xas
MGorNPIQXq/JPTsY2SzAbjyMRa3z7RdZkbaYfksXnYfMJCqEYxp/BftlvT4zxAaK
3Q64f3YXkylt/oJHkr7kEC3aA15T9DLiDyyLtua4cynb6fUlDpEey+SBGLXdXYAc
mPfq/j4PUwtQgkJ2SL48teDrKXFVOmotq386jHEEUKmywGlYZfOrNSXK+OD9/8Jj
HiwOWbBWxDi3sboh+VD2TCHQLKZwYA==
=FZKB
iQEzBAEBCAAdFiEEcNIGBzi++AUjrK/311wDs5teFOEFAltaRagACgkQ11wDs5te
FOHsAAgAqalsr1wUf8q/0KvUVbhvjvPqlVT53FFlegmzncvTQw5astcmzThYE4QO
V9wf6/wd5C8Zr0MOfW28HKSGvTKn6iJPc4PviUtC1XsLT3eTlgTbd9eq4lHKfa94
+oRJKViKx9Xp8XObK1G6jW+4+x1K1GrcWs8XzrSchu7Jp0O22x8lAwi+B+EhUnGi
VKZPtvBDjo35r1Qa1erA2p1fpj1DQ1askdgu5SSiMYonngjIETrVKC5P1cA//DOM
qBr+Pq9AmktNqco8IofuzaErT5u45XNvRL7TO9YSlpCNPozlmPHIQyBlVnwQdVJB
iFi+8ROKdnYY+mkcVboRooLlS6oUJg==
=w4Ip
-----END PGP SIGNATURE-----

View File

@ -1,4 +1,4 @@
package samlistener
package samforwarder
import (
"io"
@ -52,7 +52,8 @@ func Serve() error {
return err
}
log.Println("Destination keys generated, tunnel name:", TunName, ".")
if publishStream, err = samConn.NewStreamSession(TunName, samKeys, []string{"inbound.length=3", "outbound.length=3",
if publishStream, err = samConn.NewStreamSession(TunName, samKeys,
[]string{"inbound.length=3", "outbound.length=3",
"inbound.lengthVariance=1", "outbound.lengthVariance=1",
"inbound.backupQuantity=3", "outbound.backupQuantity=3",
"inbound.quantity=8", "outbound.quantity=8"}); err != nil {
@ -64,7 +65,7 @@ func Serve() error {
return err
}
log.Println("Starting Listener.")
b := string(samKeys.Addr().Base32()))
b := string(samKeys.Addr().Base32())
log.Println("SAM Listener created,", b+".b32.i2p")
for {