mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Fix encode_bypass
This commit is contained in:
@@ -36,7 +36,7 @@ func home_path() string {
|
|||||||
func encode_bypass(request_id string, bypass string) string {
|
func encode_bypass(request_id string, bypass string) string {
|
||||||
q := request_id + ";" + bypass
|
q := request_id + ";" + bypass
|
||||||
sum := sha256.Sum256(utils.UnsafeStringToBytes(q))
|
sum := sha256.Sum256(utils.UnsafeStringToBytes(q))
|
||||||
return fmt.Sprintf("%x", sum)
|
return fmt.Sprintf("sha256:%x", sum)
|
||||||
}
|
}
|
||||||
|
|
||||||
func abspath(path string, use_home ...bool) string {
|
func abspath(path string, use_home ...bool) string {
|
||||||
|
|||||||
Reference in New Issue
Block a user