53 Commits

Author SHA1 Message Date
kony f074c485b9 Add version compatibility check function to config package and update usage in local and remote handlers. This change enhances version management by allowing compatibility checks based on major and minor version segments, improving error handling for version mismatches. 2026-03-31 09:50:34 +08:00
kony d997ba9b22 u 2026-03-31 09:45:27 +08:00
kony 4072f9d7e6 support udp forward 2026-03-31 09:41:55 +08:00
kony 101f46829e Update local forwarding address variable in args.go and proxy_l.go to Arg_local_forward_tcp_addrs for consistency. This change enhances clarity in the configuration management of local proxy settings. 2026-03-27 19:18:51 +08:00
kony 4b94010cc8 Add TunKeyByteLen constant for fixed key length and update key generation logic across files. Adjust placeholder text for key input section to reflect new length range. 2026-03-27 13:22:27 +08:00
kony f01da3d14b Refactor configuration management by replacing direct config usage with goodlink_config package across multiple files. This change enhances code organization and clarity by centralizing configuration handling, while also removing the obsolete config.go file. 2026-03-19 12:29:52 +08:00
kony 69803374a1 Refactor configuration handling in config.go by renaming configFileName to ConfigFileName for consistency and clarity. This change improves code readability and ensures uniformity in file operations related to configuration management. 2026-03-19 12:20:23 +08:00
kony d02d9fda4b Refactor version handling by renaming GetVersion to GetVersionFromAppConfig and updating references across main_cmd.go, main_ui.go, and other files. This change centralizes version retrieval from the application configuration, improving code clarity and maintainability. 2026-03-18 10:37:34 +08:00
kony baf6ccdccd Update build number in FyneApp.toml and refine port forwarding documentation
- Incremented build number in `FyneApp.toml` from 0 to 1.
- Updated `README.md` to clarify the format for the `--forward` option, changing from `listenHost:listenPort:remoteHost:remotePort` to `listenHost:listenPort@remoteHost:remotePort`.
- Adjusted related command line examples for consistency with the new format.
- Enhanced error handling in `proxy/proxy_l.go` to reflect the updated forwarding address format.
2026-03-11 14:15:33 +08:00
kony fcbe49f65a Increment build version and enhance README.md for local proxy and port forwarding
- Updated build version in `FyneApp.toml` to 8.
- Improved descriptions in `README.md` for `--proxy` and added `--forward` options, detailing their usage and scenarios for local port forwarding.
- Clarified command line examples for both single and multiple port forwarding in local mode.
2026-03-11 13:20:09 +08:00
kony 184f351117 Update local proxy implementation and increment build version
- Incremented build version in `FyneApp.toml` to 7.
- Enhanced `Arg_local_forward_addrs` description for clarity in `config/args.go`.
- Refactored `ForwardClient` to support multiple clients in `pro/local.go` and `proxy/proxy_l.go`, allowing for improved handling of TCP listening and QUIC connections.
2026-03-11 12:25:45 +08:00
kony 4aacdec077 Refactor local proxy implementation to forward client
- Updated `FyneApp.toml` to increment build version to 6.
- Renamed `Arg_local_proxy_listen_str` to `Arg_local_proxy_addr` and added `Arg_local_forward_addrs` for improved clarity in configuration.
- Replaced `ProxyClient` with `ForwardClient` in the proxy implementation to better reflect functionality.
- Adjusted related methods to accommodate the new `ForwardClient` structure and ensure proper handling of connections.
2026-03-11 12:01:56 +08:00
kony a9bda24be6 Add local proxy listen address argument and enhance proxy header handling
- Introduced `Arg_local_proxy_listen_str` to configure the local proxy forwarding address.
- Updated `ProcessProxyClient` to construct and send a header with protocol type, IP address, and port using pooled memory for efficiency.
- Refactored header length constant to `HEAD_LEN` and added `PROXY_PORT` for clarity in proxy handling.
- Improved error logging messages for better debugging.
2026-03-10 17:56:11 +08:00
kony 109ccb4765 Refactor file handling in UI components to use a constant for the goodlink file name, enhancing code maintainability and consistency. This change replaces hardcoded references to "goodlink.json" with the constant goodlinkFileName. 2026-02-14 18:36:22 +08:00
kony 18cb076a39 Refactor config file handling in Init function to use a variable for the config file name, improving code maintainability and consistency. This change replaces hardcoded references to "config.json" with the variable configFileName. 2026-02-14 18:32:48 +08:00
kony 56f435897f Update STUN server configuration in config.go to use a predefined list of servers, enhancing initialization efficiency. 2026-02-02 16:48:50 +08:00
kony c3ace7ddbd Add STUN server configuration options and implement server startup logic
- Introduced `Arg_stun_svr_ip` and `Arg_stun_svr_port` in `args.go` for STUN server configuration.
- Updated `main_cmd.go` to start the STUN server if the IP and port are provided.
- Refactored STUN server implementation in `svr.go` to support dual UDP listeners and handle incoming requests efficiently.
2026-02-02 15:08:49 +08:00
kony 0d07065a95 Update .gitignore to include goodlink.log, increment version in FyneApp.toml to 2.4.15, modify STUN server configuration in config.go, and enhance STUN IP retrieval in cli.go by utilizing a dynamic STUN list. 2026-02-02 11:44:11 +08:00
kony ae19181278 u 2026-01-30 20:04:27 +08:00
kony 56b2a906f1 Refactor configuration loading in config.go for improved clarity and efficiency
- Simplified the process of downloading the configuration file by consolidating the URL formatting and download call into a single line.
- Removed unnecessary logging statements to streamline the output during configuration initialization.
2026-01-12 14:32:14 +08:00
kony 7a2e537357 Rename connection argument flags in args.go for consistency and clarity 2026-01-10 15:13:12 +08:00
kony 18f63db43c Update subproject reference and rename connection arguments in args.go
- Updated subproject commit reference in the tun file.
- Renamed connection arguments from Arg_conn_n0 and Arg_conn_n1 to Arg_conn_active_n0 and Arg_conn_active_n1 for clarity.
- Adjusted associated flag descriptions to reflect the new naming convention.
2026-01-10 15:12:25 +08:00
kony e718143064 u 2026-01-10 15:08:47 +08:00
kony f44e746aca Implement local configuration management and enhance initialization process
- Added support for local configuration deletion based on command-line argument.
- Refactored configuration initialization to handle local config more effectively.
- Improved logging for better tracking of configuration loading and cleanup processes.
2026-01-08 11:42:03 +08:00
kony ec603bf2b8 u 2025-09-22 17:05:21 +08:00
kony 36f388aefa update 2025-09-16 16:47:36 +08:00
kony e77496f21a add go2 2025-09-16 09:45:24 +08:00
kony ffb24e1ab5 gogo => gotools 2025-08-06 11:47:38 +08:00
kony 871ea0c812 optimized heartbeat detection 2025-04-03 18:24:55 +08:00
kony a9a66fa648 连接前确认两端版本一致 2025-03-28 19:59:58 +08:00
kony c7bc4b9c4f u 2025-03-28 17:23:38 +08:00
kony 02ee43cf61 支持Redis的Tls连接 2025-03-21 18:47:24 +08:00
kony d99e242011 u 2025-03-21 18:33:26 +08:00
kony cabe68db2c 更新版本号 2025-03-12 15:59:29 +08:00
kony 5b70f9d32f 建立连接前,确认两端版本兼容 2025-03-06 15:01:05 +08:00
kony d6ff0d85d6 开放调参接口 2025-02-20 16:57:01 +08:00
kony 28ffc1d182 增加打洞策略调参入口 2025-02-20 16:48:09 +08:00
kony 0924586c24 add for development 2025-02-11 13:42:53 +08:00
kony bf759e2d39 如果本地已存在config.json,则不需要下载 2025-01-22 18:24:49 +08:00
kony 439599bf53 跳过证书验证 2025-01-22 16:17:39 +08:00
kony 5f57648c8e 针对cmd版本,启动时必须有key选项,否则无法运行 2025-01-20 15:36:18 +08:00
kony 208f49e6bf 无参数退出运行 2025-01-20 15:03:11 +08:00
kony 25fc3efe3e 通过选项指定strun地址 2025-01-14 18:09:28 +08:00
kony 1db0192c9e 提高建立直连效率 2025-01-13 11:08:07 +08:00
kony 71f711373e 调整策略 2025-01-12 14:21:16 +08:00
kony c313d58b75 统一命令参数读取 2025-01-09 15:30:12 +08:00
kony 4facfe8aee 进程守护,异常报警 2025-01-09 12:41:11 +08:00
kony 3820f85db7 启动时初始化配置 2025-01-08 10:54:42 +08:00
kony 77591b9042 启动时如果初始化失败,自动重试,无需退出重启程序 2025-01-07 13:25:27 +08:00
kony fdec76a3e9 本地不再写死任何配置 2025-01-02 14:45:53 +08:00