代码拉取完成,页面将自动刷新
// SPDX-License-Identifier: GPL-3.0-only
/*
* Copyright (c) 2023 Dengfeng Liu <liudf0716@gmail.com>
*/
#ifndef XFRPC_CONFIG_H
#define XFRPC_CONFIG_H
#include "client.h"
#include "common.h"
// Default port definitions
// Remote Desktop ports
#define DEFAULT_MSTSC_PORT 3389
// Proxy ports
#define DEFAULT_SOCKS5_PORT 1980
// Plugin service ports
#define XFRPC_PLUGIN_TELNETD_PORT 23
#define XFRPC_PLUGIN_HTTPD_PORT 8000
#define XFRPC_PLUGIN_HTTPD_REMOTE_PORT 8001
#define XFRPC_PLUGIN_INSTALOADER_PORT 10000
#define XFRPC_PLUGIN_INSTALOADER_REMOTE_PORT 10001
#define XFRPC_PLUGIN_YOUTUBEDL_PORT 20002
#define XFRPC_PLUGIN_YOUTUBEDL_REMOTE_PORT 20003
// FTP related definitions
#define FTP_RMT_CTL_PROXY_SUFFIX "_ftp_remote_ctl_proxy"
/**
* Common configuration structure for the client
*/
struct common_conf {
/* Server settings */
char *server_addr; /* default 127.0.0.1 */
int server_port; /* default 7000 */
char *auth_token;
/* Connection settings */
int heartbeat_interval; /* default 10 */
int heartbeat_timeout; /* default 30 */
int tcp_mux; /* default 0 */
/* Environment settings */
int is_router; /* indicates if running on router (OpenWrt/LEDE) */
};
/* Configuration management functions */
struct common_conf *get_common_config(void);
void free_common_config(void);
void load_config(const char *confile);
/* Proxy service management functions */
struct proxy_service *get_proxy_service(const char *proxy_name);
struct proxy_service *get_all_proxy_services(void);
int validate_proxy(struct proxy_service *ps);
/* FTP specific functions */
char *get_ftp_data_proxy_name(const char *ftp_proxy_name);
#endif //XFRPC_CONFIG_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。