]> Sergey Matveev's repositories - tofuproxy.git/blobdiff - httpauth.go
gemini:// support
[tofuproxy.git] / httpauth.go
index ade7801242b1a9bd1ab96e06243e98cfd3810d8b..025c42d96bbd12cb5622d852fa683026bfcfa779 100644 (file)
@@ -1,5 +1,6 @@
 /*
-tofuproxy -- flexible HTTP/WARC proxy with TLS certificates management
+tofuproxy -- flexible HTTP proxy, TLS terminator, X.509 certificates
+             manager, WARC/Gemini browser
 Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
@@ -27,6 +28,8 @@ import (
        "os/exec"
        "path/filepath"
        "strings"
+
+       ttls "go.stargrave.org/tofuproxy/tls"
 )
 
 func findInNetrc(host string) (string, string) {
@@ -90,7 +93,7 @@ bind . <KeyPress> {switch -exact %%K {
     l login
 }}
 `, realm, userInit, passInit))
-       cmd := exec.Command(CmdWish)
+       cmd := exec.Command(ttls.CmdWish)
        cmd.Stdin = &b
        out, err := cmd.Output()
        if err != nil {