Skip to content

Socks5 proxy unsupported #34119

@COD3HUNT3R

Description

@COD3HUNT3R

Description

I run v2raya as system proxy(socks5).

https://docs.gitea.com/administration/config-cheat-sheet#proxy-proxy

My gitea proxy config

[proxy]
PROXY_ENABLED = true
PROXY_URL = socks://127.0.0.1:20170
PROXY_HOSTS = *

I am not quite sure why it attempts socks4 connection. I tried changing PROXY_URL to socks5://127.0.0.1:20170

This is in my gitea log

2025/04/04 07:41:18 ...irror/mirror_pull.go:321:runSync() [E] SyncMirrors [repo: <Repository 82:mit/shiori>]: failed to update mirror repository:
Stdout: 
Stderr: fatal: unable to access 'https://github.com/go-shiori/shiori.git/': SOCKS4 connection to 64:ff9b::14cd:f3a6 not supported

Err: exit status 128

Gitea Version

1.23.6

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

Running locally behind socks5 proxy. Downloaded from GH release.

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions