diff --git a/frpc/Dockerfile b/frpc/Dockerfile index ab3072d..d9cc489 100644 --- a/frpc/Dockerfile +++ b/frpc/Dockerfile @@ -14,10 +14,10 @@ RUN cd /root \ && tar -xzvf frp.tgz --strip-component=1 -C temp \ && mkdir frp_client \ && cp temp/frpc frp_client/frpc -COPY main.c /root/temp/ +COPY launcher.c /root/temp/ RUN cd /root/temp \ - && gcc main.c -o main \ - && mv main /root/frp_client/launcher \ + && gcc launcher.c -o launcher \ + && mv launcher /root/frp_client/ \ && chmod +x /root/frp_client/frpc \ && chmod +x /root/frp_client/launcher diff --git a/frpc/main.c b/frpc/launcher.c similarity index 94% rename from frpc/main.c rename to frpc/launcher.c index eda165b..73eb550 100644 --- a/frpc/main.c +++ b/frpc/launcher.c @@ -2,7 +2,7 @@ #include #include -// start [-ezkn] [-p PoolSize] [-f TokenFilename] ServerIP ServerPort ProxyName ProxyType LocalPort RemotePort +// launcher [-ezkn] [-p PoolSize] [-f TokenFilename] ServerIP ServerPort ProxyName ProxyType LocalPort RemotePort int main(int argc, char *argv[]) { int ch = 0; @@ -123,7 +123,7 @@ int main(int argc, char *argv[]) if (!noExec) { fprintf(stderr, "Loading frpc...\n"); - char* const callArgs[] = {"The Frp Client", "-c", "/tmp/frpc.ini", NULL}; + char* const callArgs[] = {"frpc", "-c", "/tmp/frpc.ini", NULL}; if (execv("/opt/frp/frpc", callArgs) < 0) { perror("execv");