diff --git a/config/tunconf.go b/config/tunconf.go
index ccc4909..b4aa7ee 100644
--- a/config/tunconf.go
+++ b/config/tunconf.go
@@ -269,8 +269,8 @@ func (c *Conf) I2PINILoad(iniFile string, label ...string) error {
c.SetKeyFile(label...)
c.SetUserName(label...)
c.SetPassword(label...)
- c.SetControlHost(label...)
- c.SetControlPort(label...)
+ c.SetControlHost(label...)
+ c.SetControlPort(label...)
if v, ok := c.Get("i2cp.accessList", label...); ok {
csv := strings.Split(v, ",")
for _, z := range csv {
diff --git a/etc/samcatd/tunnels.ini b/etc/samcatd/tunnels.ini
index 55b0c57..bd94c77 100644
--- a/etc/samcatd/tunnels.ini
+++ b/etc/samcatd/tunnels.ini
@@ -65,10 +65,10 @@ inbound.length = 3
outbound.length = 3
keys = httpserver
-[sam-forwarder-tcp-http-client]
-type = httpclient
-host = 127.0.0.1
-port = 8086
-inbound.length = 3
-outbound.length = 3
-keys = proxy
+#[sam-forwarder-tcp-http-client]
+#type = httpclient
+#host = 127.0.0.1
+#port = 8086
+#inbound.length = 3
+#outbound.length = 3
+#keys = proxy
diff --git a/handler/tunnelhandler.go b/handler/tunnelhandler.go
index 240c45b..2f02705 100644
--- a/handler/tunnelhandler.go
+++ b/handler/tunnelhandler.go
@@ -83,10 +83,13 @@ func (t *TunnelHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
}
t.Printdivf(t.SAMTunnel.ID(), "TunName", t.SAMTunnel.ID(), rw, req)
- fmt.Fprintf(rw, " \n", t.SAMTunnel.ID())
- fmt.Fprintf(rw, " Show/Hide %s
\n", t.SAMTunnel.ID(), t.SAMTunnel.ID())
- fmt.Fprintf(rw, " Tunnel page\n", t.SAMTunnel.ID())
- fmt.Fprintf(rw, " \n")
+
+ if strings.HasSuffix(req.URL.Path, "color") {
+ fmt.Fprintf(rw, " \n", t.SAMTunnel.ID())
+ fmt.Fprintf(rw, " Show/Hide %s
\n", t.SAMTunnel.ID(), t.SAMTunnel.ID())
+ fmt.Fprintf(rw, " Tunnel page\n", t.SAMTunnel.ID())
+ fmt.Fprintf(rw, " \n")
+ }
for key, value := range t.SAMTunnel.Props() {
if key != "TunName" {
t.Printdivf(key, key, value, rw, req)
@@ -94,27 +97,24 @@ func (t *TunnelHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
}
if strings.HasSuffix(req.URL.Path, "color") {
fmt.Fprintf(rw, " \n\n")
- }
- if strings.HasSuffix(req.URL.Path, "color") {
fmt.Fprintf(rw, "