mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[PR #1047] [CLOSED] Frpc fixup sub command status and reload ini parse problem #4305
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#4305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fatedier/frp/pull/1047
Author: @ttys3
Created: 1/16/2019
Status: ❌ Closed
Base:
dev← Head:frpc-fixup-sub-command-status-and-reload-ini-parse-problem📝 Commits (2)
5bdf530Merge pull request #1045 from fatedier/devd076fdbfrpc: fixup ini config parse problem in sub commandstatusandreload.📊 Changes
2 files changed (+16 additions, -2 deletions)
View changed files
📝
cmd/frpc/sub/reload.go(+8 -1)📝
cmd/frpc/sub/status.go(+8 -1)📄 Description
frpc: fixup ini config parse problem in sub command
statusandreloadproblem:
when run
frpc -c /path-to/frpc.ini statusorfrpc -c /path-to/frpc.ini reload,we'll get the error result:
since
func parseClientCommonCfg(fileType int, content string) (err error)only accept file content, not a filename.
we should call
config.GetRenderedConfFromFilefirst to avoid the problem.just like the code in cmd/frpc/sub/root.go:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.