Replace separator from underscore (_) to tilde (~)

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-08 23:59:18 +00:00
parent 9e37c299a1
commit 5a66c40ad2

View File

@@ -459,8 +459,8 @@ func (c *TLSConfig) Build() (proto.Message, error) {
if c.PinnedPeerCertSha256 != "" {
config.PinnedPeerCertSha256 = [][]byte{}
// Split by underscore separator
hashes := strings.Split(c.PinnedPeerCertSha256, "_")
// Split by tilde separator
hashes := strings.Split(c.PinnedPeerCertSha256, "~")
for _, v := range hashes {
v = strings.TrimSpace(v)
if v == "" {