[GH-ISSUE #4434] Template render cannot handle "hostname" #3504

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

Originally created by @rty813 on GitHub (Sep 13, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4434

Bug Description

I set name as test_{{ .Envs.hostname }} in the configuration file, but when I run hostname=123 frpc -c frpc.toml, the name shows as test_. If I replace hostname with something like hostname1 or another string, it works normally.

frpc Version

0.60.0

frps Version

0.60.0

System Architecture

linux/amd64

Configurations

[[proxies]]
name = "test_{{ .Envs.hostname }}"

Logs

[test_] start proxy success

Steps to reproduce

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @rty813 on GitHub (Sep 13, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4434 ### Bug Description I set name as `test_{{ .Envs.hostname }}` in the configuration file, but when I run `hostname=123 frpc -c frpc.toml`, the name shows as `test_`. If I replace hostname with something like hostname1 or another string, it works normally. ### frpc Version 0.60.0 ### frps Version 0.60.0 ### System Architecture linux/amd64 ### Configurations ``` [[proxies]] name = "test_{{ .Envs.hostname }}" ``` ### Logs [test_] start proxy success ### Steps to reproduce _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
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#3504
No description provided.