mirror of
https://github.com/LamGC/ContentGrabbingJi.git
synced 2025-07-02 21:37:26 +00:00
Compare commits
2 Commits
v2.5.2-202
...
v2.5.2-202
Author | SHA1 | Date | |
---|---|---|---|
273dbd45b0 | |||
b39a82b936 |
2
pom.xml
2
pom.xml
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<groupId>net.lamgc</groupId>
|
<groupId>net.lamgc</groupId>
|
||||||
<artifactId>ContentGrabbingJi</artifactId>
|
<artifactId>ContentGrabbingJi</artifactId>
|
||||||
<version>2.5.2-20200604.2-SNAPSHOT</version>
|
<version>2.5.2-20200604.3-SNAPSHOT</version>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -14,6 +14,8 @@ import java.net.URL;
|
|||||||
|
|
||||||
public final class BotGlobal {
|
public final class BotGlobal {
|
||||||
|
|
||||||
|
private final static Logger log = LoggerFactory.getLogger(BotGlobal.class);
|
||||||
|
|
||||||
private final static BotGlobal instance = new BotGlobal();
|
private final static BotGlobal instance = new BotGlobal();
|
||||||
|
|
||||||
public static BotGlobal getGlobal() {
|
public static BotGlobal getGlobal() {
|
||||||
@ -23,8 +25,6 @@ public final class BotGlobal {
|
|||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private final static Logger log = LoggerFactory.getLogger(BotGlobal.class);
|
|
||||||
|
|
||||||
private final URI redisUri;
|
private final URI redisUri;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,7 +53,7 @@ public final class BotGlobal {
|
|||||||
try {
|
try {
|
||||||
URL proxyUrl = new URL(proxyAddress);
|
URL proxyUrl = new URL(proxyAddress);
|
||||||
temp = new HttpHost(proxyUrl.getHost(), proxyUrl.getPort());
|
temp = new HttpHost(proxyUrl.getHost(), proxyUrl.getPort());
|
||||||
log.info("已启用Http协议代理:{}", temp.toHostString());
|
log.info("已启用代理:{}", temp.toHostString());
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
log.error("Proxy地址解析失败, 代理将不会启用.", e);
|
log.error("Proxy地址解析失败, 代理将不会启用.", e);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user