mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2516] Make a Go Desktop Application FRP Client #1997
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#1997
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?
Originally created by @hinupurthakur on GitHub (Aug 6, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2516
The solution you want
Instead of using the CLI to start a FRP Client, I want to use this repository as a package, On exploring I found out https://github.com/fatedier/frp/blob/dev/client/service.go but how to create a client with the following .ini:
Alternatives considered
How to implement this function
Application scenarios of this function
I implemented something like this:
BUt I am not able to understand what should be the values of VisitorCfg and ProxyCfg. And How to use the
[web]section of the .ini file as we can use in CLIFrom the above code I am getting the following logs:
@fatedier commented on GitHub (Aug 6, 2021):
ProxyCfg and VisitorCfg is parsed from ini file. You can find code here https://github.com/fatedier/frp/blob/dev/pkg/config/client.go
It's not designed as package to use now. Maybe it's difficult for you.
But i plan to refactor codes to make things easy.
@hinupurthakur commented on GitHub (Aug 6, 2021):
@fatedier I checked that too, but I am not able to understand what should be the value to be passed for ProxyCfg and VisitorCfg to the function client.NewService() so that I can use the .ini file provided above and start a frp client.
@fatedier commented on GitHub (Aug 6, 2021):
You should read more codes by yourself. Maybe https://github.com/fatedier/frp/blob/dev/cmd/frpc/sub/root.go#L168
@hinupurthakur commented on GitHub (Aug 6, 2021):
@fatedier Thanks for the help! but I am still getting such logs. Should I also make the
control.gocode local to my project?@hinupurthakur commented on GitHub (Aug 6, 2021):
@fatedier Or is there any other way to use frp without installing it manually on the Client side?
@hinupurthakur commented on GitHub (Aug 9, 2021):
@fatedier Update on this task There are new logs:
@github-actions[bot] commented on GitHub (Sep 9, 2021):
Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.