mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #4754] virtual_net: error unmarshaling JSON: while decoding JSON #3756
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#3756
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 @synclab-srl on GitHub (Apr 16, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4754
Bug Description
Hi @fatedier
I'm trying the new VirtualNet feature
The client starts correctly and the utun interface is created:
Client config:
Frpc log:
ifconfig log:
When I start visitors on another machine I get the following error:
This is the visitors configuration:
Is there something wrong with my visitors configuration or is it a bug?
Hi and thanks
frpc Version
0.62.0
frps Version
0.62.0
System Architecture
linux/amd64
Configurations
serverAddr = "myserver.net"
serverPort = 7835
auth.method = "token"
auth.token = "ababababa"
transport.protocol = "tcp"
transport.tls.enable = false
featureGates = {
VirtualNet = true
}
virtualNet.address = "100.86.0.2/24"
visitors
name = "vnet-visitor"
type = "stcp"
serverName = "virtual-net"
secretKey = "zzzzzzzzzz"
bindPort = -1
[visitors.plugin]
type = "virtual_net"
destinationIP = "100.86.0.1"
Logs
sudo ./frpc -c proxy.toml
[sudo] password di fabio:
error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type v1.ClientConfig
Steps to reproduce
...
Affected area
@fatedier commented on GitHub (Apr 16, 2025):
It looks like this should be changed to
featureGates = { VirtualNet = true }I need to update the documentation.
@synclab-srl commented on GitHub (Apr 16, 2025):
Thanks!!!