[GH-ISSUE #52] json: cannot unmarshal string into Go struct field rawConfig.ProxyBook of type []string #43

Closed
opened 2026-02-26 12:33:48 +03:00 by kerem · 2 comments
Owner

Originally created by @hvonw on GitHub (Aug 17, 2019).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/52

Hi @cbeuw, after upgrading my server and my build env. this issue came up. I do not know the reason is recent commits or a golang related bug?

Thank you for all of your efforts.

./ck-server -c server.json -p 443 -s 0.0.0.0

INFO[0000] Starting standalone mode, listening on 0.0.0.0:443 
FATA[0000] Configuration file error: Failed to read configuration file: json: cannot unmarshal string into Go struct field rawConfig.ProxyBook of type []string

Server configuration file:

{
"ProxyBook":{
"shadowsocks": "",
"openvpn": "",
"tor": ""},

"BypassUID": "",
"RedirAddr": "",
"PrivateKey": "",
"AdminUID": "",
"DatabasePath": "userinfo.db"
}

Build environment:
go1.12.9.linux-amd64 on Ubuntu.

Originally created by @hvonw on GitHub (Aug 17, 2019). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/52 Hi @cbeuw, after upgrading my server and my build env. this issue came up. I do not know the reason is recent commits or a golang related bug? Thank you for all of your efforts. `./ck-server -c server.json -p 443 -s 0.0.0.0 ` ``` INFO[0000] Starting standalone mode, listening on 0.0.0.0:443 FATA[0000] Configuration file error: Failed to read configuration file: json: cannot unmarshal string into Go struct field rawConfig.ProxyBook of type []string ``` Server configuration file: ``` { "ProxyBook":{ "shadowsocks": "", "openvpn": "", "tor": ""}, "BypassUID": "", "RedirAddr": "", "PrivateKey": "", "AdminUID": "", "DatabasePath": "userinfo.db" } ``` Build environment: go1.12.9.linux-amd64 on Ubuntu.
kerem closed this issue 2026-02-26 12:33:48 +03:00
Author
Owner

@cbeuw commented on GitHub (Aug 17, 2019):

It's because of the experimental UDP support I just added. I just updated the example config file. This is how it looks like now: https://github.com/cbeuw/Cloak/blob/master/example_config/ckserver.json

<!-- gh-comment-id:522223568 --> @cbeuw commented on GitHub (Aug 17, 2019): It's because of the experimental UDP support I just added. I just updated the example config file. This is how it looks like now: https://github.com/cbeuw/Cloak/blob/master/example_config/ckserver.json
Author
Owner

@hvonw commented on GitHub (Aug 17, 2019):

Thanks!
Godspeed.

<!-- gh-comment-id:522224247 --> @hvonw commented on GitHub (Aug 17, 2019): Thanks! Godspeed.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Cloak#43
No description provided.