mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2712] [Feature Request] FRP Client or Server start via frp package instead of binary #2166
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#2166
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 (Dec 20, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2712
Describe the feature request
Currently to integrate the functionality of the frp to another package we have to integrate the .exe file. Can we use the frp package directly to integrate it. I have requested this feature before as well for version 0.37.1 ( related issue #2516 )
Describe alternatives you've considered
Something like this, this is the code snippet picked from the frp client but it doesn't work it gives the error like:
Affected area
@hinupurthakur commented on GitHub (Dec 20, 2021):
@fatedier Please let me know if I can help with this in any possible way, as I would really like this feature to be there with frp. I will be happy to help and contribute.
Thanks!
@fatedier commented on GitHub (Dec 20, 2021):
read error: message type errorFrom this log, i guess your server version is not compatible with your client.
@fatedier commented on GitHub (Dec 20, 2021):
All message types are defined in
github.com/fatedier/frp/pkg/msg/msg.go.@hinupurthakur commented on GitHub (Dec 20, 2021):
@fatedier Checked and both server and client have same version as 0.38.0
@hinupurthakur commented on GitHub (Dec 20, 2021):
For the reference above is my cfg file. @fatedier
It will be really helpful if you could please guide here
@fatedier commented on GitHub (Dec 20, 2021):
It's not releated to your configures. This error means received message type is not registered in
github.com/fatedier/frp/pkg/msg/msg.go.I can't help you without any debugging method or full codes.
@hinupurthakur commented on GitHub (Dec 20, 2021):
@fatedier Below is the repository with whole code please let me know if this is sufficient
https://github.com/hinupurthakur/frpc
@fatedier commented on GitHub (Dec 21, 2021):
@hinupurthakur I found this problem caused by you missing these codes https://github.com/fatedier/frp/blob/dev/cmd/frpc/main.go#L28
@hinupurthakur commented on GitHub (Dec 21, 2021):
Thanks @fatedier It worked. 🎉