diff options
author | Chih-Hsuan Yen <1937689+yan12125@users.noreply.github.com> | 2023-07-28 18:08:50 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-28 10:08:50 +0000 |
commit | b806026990d6f44c7bddf6701c50690bf0d51757 (patch) | |
tree | fbf63124ec5ff02167f709bc5d73500ba1267d30 | |
parent | 341b79814ec9eb9740705e935f653c358832ea67 (diff) | |
download | syncthing-b806026990d6f44c7bddf6701c50690bf0d51757.tar.gz syncthing-b806026990d6f44c7bddf6701c50690bf0d51757.zip |
lib/connections: Fix building with `-tags noquic` (#9009)
-rw-r--r-- | lib/connections/quic_unsupported.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/connections/quic_unsupported.go b/lib/connections/quic_unsupported.go index f293a6bc0..5dc555c29 100644 --- a/lib/connections/quic_unsupported.go +++ b/lib/connections/quic_unsupported.go @@ -9,6 +9,10 @@ package connections +import ( + "fmt" +) + var errNotInBuild = fmt.Errorf("%w: disabled at build time", errUnsupported) func init() { |