Add correct configuration

This commit is contained in:
9seconds
2021-03-10 14:42:24 +03:00
parent 59f328b804
commit d1dd56550f
6 changed files with 389 additions and 43 deletions
+3 -3
View File
@@ -58,10 +58,10 @@ func (s *Secret) UnmarshalText(data []byte) error {
}
func (s Secret) Base64() string {
data := append([]byte{238}, s.Key...) // 238 = hex ee
data = append(data, s.Host...)
data := append([]byte{238}, s.Key...) // 238 = hex ee
data = append(data, s.Host...)
return base64.RawURLEncoding.EncodeToString(data)
return base64.RawURLEncoding.EncodeToString(data)
}
func (s Secret) String() string {