Compare commits

...

4 Commits

Author SHA1 Message Date
0539f961d9
更新 settings.gradle.kts
All checks were successful
Gitea Actions Build / Build (push) Successful in 47s
2025-07-10 08:52:15 +08:00
88a481ae03
更新 build.gradle.kts
Some checks failed
Gitea Actions Build / Build (push) Has been cancelled
2025-07-10 08:51:57 +08:00
e52c836439
更新 .gitea/workflows/build.yaml
All checks were successful
Gitea Actions Build / Build (push) Successful in 49s
2025-07-06 00:11:37 +08:00
847536080b
no message
Some checks failed
Gitea Actions Build / Build (push) Failing after 46s
2025-07-06 00:09:36 +08:00
9 changed files with 19 additions and 14 deletions

View File

@ -14,8 +14,7 @@ jobs:
- name: build-test
run: |
source gradle.properties
gradle
gradle build-jar
gradle -Dorg.gradle.java.home=/opt/jdk/21.0.7/ build-jar
- name: Releases
run: |

View File

@ -1,4 +1,3 @@
import java.security.MessageDigest
import java.text.SimpleDateFormat
import java.util.Date
@ -38,10 +37,10 @@ dependencies {
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
implementation("org.jetbrains:annotations:24.0.0")
annotationProcessor("org.jetbrains:annotations:24.0.0")
implementation("com.mingliqiye:network-endpoint:1.0.2")
implementation("com.mingliqiye:string-utilts:1.0.4")
implementation("com.mingliqiye:socket-utilts:1.0.6")
implementation("org.apache.logging.log4j:log4j-core:2.12.4")
implementation("com.mingliqiye:network-endpoint:1.0.4")
implementation("com.mingliqiye:string-utils:1.0.4")
implementation("com.mingliqiye:socket-utils:1.0.7")
implementation("org.apache.logging.log4j:log4j-core:2.25.0")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.1")
}

View File

@ -1,5 +1,5 @@
GROUPSID=com.mingliqiye
ARTIFACTID=tcp-proxy
VERSIONS=0.1
VERSIONS=0.2
MAINCLASS=com.mingliqiye.tcp.proxy.Main
JDKVERSIONS=1.8

View File

@ -1 +1,2 @@
rootProject.name = "tcp-proxy"
val ARTIFACTID: String by settings.extra
rootProject.name= ARTIFACTID

View File

@ -9,7 +9,9 @@ import org.apache.logging.log4j.Logger;
public class Main {
private static final Logger log = LogManager.getLogger(Main.class);
private static final Logger log = LogManager.getLogger(
Main.class.getName()
);
public static void main(String[] args) {
log.info("启动中...");

View File

@ -7,7 +7,7 @@ import org.apache.logging.log4j.Logger;
public class Proxy {
private static Logger log = LogManager.getLogger(Proxy.class);
private static Logger log = LogManager.getLogger(Proxy.class.getName());
private final TcpSocketServer tcpSocketServer;
Proxy(NetworkEndpoint endpoint, NetworkEndpoint remoteEndpoint) {

View File

@ -14,7 +14,9 @@ import org.apache.logging.log4j.Logger;
public class ProxyClient extends Thread implements Closeable {
private static Logger log = LogManager.getLogger(ProxyClient.class);
private static Logger log = LogManager.getLogger(
ProxyClient.class.getName()
);
private final String id;

View File

@ -20,7 +20,9 @@ public class ServerEvent extends TcpServerImplementation {
*/
private final Map<String, ProxyClient> clientMap =
new ConcurrentHashMap<>();
private static Logger log = LogManager.getLogger(Proxy.class);
private static Logger log = LogManager.getLogger(
ServerEvent.class.getName()
);
public ServerEvent(
NetworkEndpoint endpoint,

View File

@ -4,7 +4,7 @@ Appenders:
name: CONSOLE #Appender命名
target: SYSTEM_OUT
PatternLayout:
pattern: "%style{%d{yyyy-MM-dd HH:mm:ss,SSS}}{bright,magenta} [%highlight{%p}{FATAL=white, ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan, TRACE=blue}] [%style{%t}{bright,yellow}/%style{%c{1}}{bright,cyan}] -- %style{%m}{#EEDFCC}%n" #输出日志的格式
pattern: "%style{%d{yyyy-MM-dd HH:mm:ss,SSS}}{bright,magenta} [%highlight{%p}{FATAL=white, ERROR=red, WARN=yellow, INFO=green, DEBUG=cyan, TRACE=blue}] [%style{%t}{bright,yellow}/%style{%c{1}}{bright,cyan}] -- %style{%m}{#EEDFCC} %n" #输出日志的格式
disableAnsi: "${env:DISABLECOLOR:-false}"
RollingFile:
- name: FILE