Replace separator from pipe (|) to underscore (_)

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

View File

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