Client

Dynamic Configuration update

When you need to modify the Agent Configuration of frpc, you can use frpc reload Command to dynamically load the Configuration file, usually completing the Agent within seconds Update of.

To enable this feature, webServer needs to be enabled in frpc to provide APIs Service. The configuration is as follows:

webServer.addr = "127.0.0.1"
    webServer.port = 7400
    

Then execute the following command to overload Configuration:

frpc reload - c/ Frpc. toml

After waiting for a period of time, the client will follow the new Configuration Create, update, or delete an Agent using file. It should be noted that non Agent The parameters of the relevant public parts, except for start, cannot be modified at present.

Command Line View Agent Status

FRPC supports through frpc status - c/ Frpc. ini Command to view the status information of the Agent, which requires enabling webServer in frpc.

UseAgent connection frps

In environments where external networks can only be accessed through the Agent, frpc supports HTTP or SOCKS5 Agent establishes a connection with FRPS.

You can set the system environment variableHTTP_ PROXYor on frpc Set in the Configuration file Use this feature with thetransport. proxyURLparameter.

Only in transport. protocol="a; TCP".

serverAddr = "x.x.x.x"
    serverPort = 7000
    transport.proxyURL = "http://user:pwd@192.168.1.128:8080"
    

Settransport. proxyURLto socks5://user: pwd@192.168.1.128 : 8080can also be connected to SOCKS5 Agent.

Last modified November 15, 2023: fix 404 (#71) (626ce4d)