From d1828e076c1c9ec4505757e3402941e542975a07 Mon Sep 17 00:00:00 2001 From: Vladislav Yarmak Date: Thu, 8 Jan 2026 18:14:22 +0200 Subject: [PATCH] add fallback cert bundle --- go.mod | 5 ++++- go.sum | 3 +++ main.go | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index d870c75..ee6deea 100644 --- a/go.mod +++ b/go.mod @@ -12,4 +12,7 @@ require ( golang.org/x/net v0.48.0 ) -require github.com/hashicorp/errwrap v1.1.0 // indirect +require ( + github.com/hashicorp/errwrap v1.1.0 // indirect + golang.org/x/crypto/x509roots/fallback v0.0.0-20251210140736-7dacc380ba00 // indirect +) diff --git a/go.sum b/go.sum index efd2b48..f8051bc 100644 --- a/go.sum +++ b/go.sum @@ -15,6 +15,9 @@ github.com/stretchr/testify v1.11.0 h1:ib4sjIrwZKxE5u/Japgo/7SJV3PvgjGiRNAvTVGqQ github.com/stretchr/testify v1.11.0/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U= github.com/things-go/go-socks5 v0.1.0 h1:4f5dz0iMQ6cA4wseFmyLmCHmg3SWJTW92ndrKS6oERg= github.com/things-go/go-socks5 v0.1.0/go.mod h1:Riabiyu52kLsla0YmJqunt1c1JEl6iXSr4bRd7swFEA= +golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU= +golang.org/x/crypto/x509roots/fallback v0.0.0-20251210140736-7dacc380ba00 h1:qObov2/X4yIpr98j5t6samg3mMF12Rl4taUJd1rWj+c= +golang.org/x/crypto/x509roots/fallback v0.0.0-20251210140736-7dacc380ba00/go.mod h1:MEIPiCnxvQEjA4astfaKItNwEVZA5Ki+3+nyGbJ5N18= golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU= golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/main.go b/main.go index 6c06a6b..3f13e19 100644 --- a/main.go +++ b/main.go @@ -29,6 +29,8 @@ import ( clog "github.com/Snawoot/opera-proxy/log" "github.com/Snawoot/opera-proxy/resolver" se "github.com/Snawoot/opera-proxy/seclient" + + _ "golang.org/x/crypto/x509roots/fallback" ) const (