Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd-ports 仓库下的 ports.git 没法用 gitup 获取,报错 setup_ssl: SSL_connect error: 1 #464

Closed
Alex6357 opened this issue Jul 18, 2024 · 3 comments

Comments

@Alex6357
Copy link

问题描述 / Bug description

执行 gitup ports,重复出现报错 setup_ssl: SSL_connect error: 1 刷屏。
相同的配置,nju 源是正常的,官方源也是正常的。
配置文件:

# $FreeBSD$
#
# Default configuration options for gitup.conf.
{
        "defaults" : {
                "host"           : "git.freebsd.org",
                "port"           : 443,
#               "proxy_host"     : "",
#               "proxy_port"     : 0,
#               "proxy_username" : "",
#               "proxy_password" : "",
#               "source_address" : "",
                "low_memory"     : false,
                "display_depth"  : 0,
                "verbosity"      : 1,
                "work_directory" : "/var/db/gitup",
        },

        "ports" : {
                "host"             : "mirrors.ustc.edu.cn",
                "repository_path"  : "/freebsd-ports/ports.git",
                "branch"           : "main",
                "target_directory" : "/usr/ports",
                "ignores"          : [],
        },

        "quarterly" : {
                "host"             : "mirrors.ustc.edu.cn",
                "repository_path"  : "/freebsd-ports/ports.git",
                "branch"           : "quarterly",
                "target_directory" : "/usr/ports",
                "ignores"          : [],
        },

        "release" : {
                "repository_path"  : "/src.git",
                "branch"           : "releng/13.2",
                "target_directory" : "/usr/src",
                "ignores"          : [
                        "sys/[^\/]+/conf",
                ],
        },

        "stable" : {
                "repository_path"  : "/src.git",
                "branch"           : "stable/14",
                "target_directory" : "/usr/src",
                "ignores"          : [
                        "sys/[^\/]+/conf",
                ],
        },

        "current" : {
                "repository_path"  : "/src.git",
                "branch"           : "main",
                "target_directory" : "/usr/src",
                "ignores"          : [
                        "sys/[^\/]+/conf",
                ],
        }
}
@Alex6357 Alex6357 added the bug label Jul 18, 2024
@taoky
Copy link
Member

taoky commented Jul 18, 2024

从抓包结果看,gitup 不会发送 SNI,导致连接被拒绝:

image

curl 命令:curl --tls-max 1.2 --tlsv1.2 https://mirrors.ustc.edu.cn

我们不会修改相关配置,请向 gitup 反馈此问题,在 TLS Client Hello 中加入 server_name (SNI)。

@everything411
Copy link

@Alex6357 I write a simple patch for this problem, see johnmehr/gitup#103.

@Alex6357
Copy link
Author

@Alex6357 I write a simple patch for this problem, see johnmehr/gitup#103.

Thank you.
Just opened an issue XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants