[GH-ISSUE #2126] windows server 2012 : parse ini conf file error #1692

Closed
opened 2026-05-05 13:05:01 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @wy1037 on GitHub (Dec 2, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2126

version 0.34.3

frpc.exe -c frpc.ini
parse ini conf file error: invalid INI syntax on line 1: # [common] is integral

同样的文件,win7 可以执行,
windows server 2008 r2
windows server 2012 r2
都是报错的,
为了避免其他影响:
frpc.ini 文件 只写了2行内容:

# [common] is integral [common] server_addr=172.16.1.117 server_port=7000

Originally created by @wy1037 on GitHub (Dec 2, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2126 version 0.34.3 frpc.exe -c frpc.ini parse ini conf file error: invalid INI syntax on line 1: # [common] is integral 同样的文件,win7 可以执行, windows server 2008 r2 windows server 2012 r2 都是报错的, 为了避免其他影响: frpc.ini 文件 只写了2行内容: > `# [common] is integral [common] server_addr=172.16.1.117 server_port=7000`
Author
Owner

@Becods commented on GitHub (Dec 3, 2020):

注释问题

[common]
server_addr=172.16.1.117
server_port=7000
<!-- gh-comment-id:737805717 --> @Becods commented on GitHub (Dec 3, 2020): 注释问题 ``` [common] server_addr=172.16.1.117 server_port=7000 ```
Author
Owner

@wy1037 commented on GitHub (Dec 4, 2020):

不是注释问题。

后来发现,frpc.ini 文件格式用记事本改为ANSI 就可以了。
文件内容没有任何问题。

<!-- gh-comment-id:738539681 --> @wy1037 commented on GitHub (Dec 4, 2020): 不是注释问题。 后来发现,frpc.ini 文件格式用记事本改为ANSI 就可以了。 文件内容没有任何问题。
Author
Owner

@wy1037 commented on GitHub (Dec 4, 2020):

frpc.ini 文件格式用记事本改为ANSI 就可以了

<!-- gh-comment-id:738649029 --> @wy1037 commented on GitHub (Dec 4, 2020): frpc.ini 文件格式用记事本改为ANSI 就可以了
Sign in to join this conversation.
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: github-starred/frp#1692
No description provided.