fix: update frpc config#8548
Merged
Merged
Conversation
(cherry picked from commit 57c924b)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
apps/frpc/0.69.1/data.yml:ENABLE_VIRTUAL_NET(selecttoggle: enable / disable, default disabled) — whether to enable frpc VirtualNet featureVIRTUAL_NET_IP(text, default10.0.0.1/24) — CIDR address for the virtual network interfaceapps/frpc/0.69.1/data/frpc.toml:# featureGates = { VirtualNet = true }# virtualNet.address = "10.10.10.10/24"apps/frpc/0.69.1/docker-compose.yml:cap_add: NET_ADMINdevices: "/dev/net/tun:/dev/net/tun"apps/frpc/0.69.1/scripts/init.sh:modprobe tun(silent, failure-tolerant) and check whether the/dev/net/tuncharacter device exists, warning if missingENABLE_VIRTUAL_NET=true: validate thatVIRTUAL_NET_IPis non-empty and a valid CIDR (formatIPv4/0-32with each octet 0–255), then uncommentfeatureGatesandvirtualNet.addressand write them intofrpc.tomlVALIDATION
data.ymlrender correctly in the 1Panel install / modify-parameters form (toggle + text input)sedreplacements ininit.shcorrectly uncomment the VirtualNet config block when enabledcap_addanddevicesmapping syntax indocker-compose.ymlis correctmodprobe tunand/dev/net/tundevice-check logic executes normally as root on the hostNOTES
init.shruns on the host as root during install / rebuild; modifying parameters and saving alone does not re-run this script — a rebuild is required for the config to take effecttunkernel module; on some minimal-kernel hosts it may need to be loaded manuallydata/frpc.tomlis commented out by default and is only activated byinit.shwhen the switch is enabled