[GH-ISSUE #4339] Why does force type=http require a domain? #3426

Closed
opened 2026-05-05 14:12:27 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @TangMonk on GitHub (Jul 14, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4339

Bug Description

frpc.toml

[[proxies]]
name = "test-http"
type = "http"
localIP = "127.0.0.1"
localPort = 3003
$./frpc -c frpc.toml
proxy test-http: subdomain and custom domains should not be both empty

Then I tried set customDomains to my server ip(customDomains = ["139.59.*.*"]), But still not works

frpc.toml

[[proxies]]
name = "test-http"
type = "http"
localIP = "127.0.0.1"
localPort = 3003
customDomains = ["my_server_ip"]

curl this server:

$curl my_server_ip:8080

frps logs:

[W] [httputil/reverseproxy.go:472] do http proxy request [host: localhost:8080] error: no route found: localhost /

There should a option way to allow no domain http proxy.

frpc Version

0.59.0

frps Version

0.59.0

Originally created by @TangMonk on GitHub (Jul 14, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4339 ### Bug Description frpc.toml ``` [[proxies]] name = "test-http" type = "http" localIP = "127.0.0.1" localPort = 3003 ``` ``` $./frpc -c frpc.toml proxy test-http: subdomain and custom domains should not be both empty ``` Then I tried set `customDomains` to my server ip(`customDomains = ["139.59.*.*"]`), But still not works frpc.toml ``` [[proxies]] name = "test-http" type = "http" localIP = "127.0.0.1" localPort = 3003 customDomains = ["my_server_ip"] ``` curl this server: ``` $curl my_server_ip:8080 frps logs: [W] [httputil/reverseproxy.go:472] do http proxy request [host: localhost:8080] error: no route found: localhost / ``` There should a option way to allow no domain http proxy. ### frpc Version 0.59.0 ### frps Version 0.59.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3426
No description provided.