Commit 42de67c9 authored by Hiro's avatar Hiro 🏄
Browse files

Fix style checks

parent b2c7fdaf
Pipeline #34307 passed with stage
in 2 minutes and 18 seconds
......@@ -969,7 +969,8 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
detailsStatus.setBridgedbDistributor(bridgedbDistributor);
String[] blocklistParts = assignment.split("blocklist=");
if (blocklistParts != null && blocklistParts.length > 1) {
List<String> blocklist = Arrays.asList(blocklistParts[1].split(","));
List<String> blocklist =
Arrays.asList(blocklistParts[1].split(","));
detailsStatus.setBlocklist(blocklist);
}
}
......
......@@ -108,25 +108,25 @@ public class NodeDetailsStatusUpdaterTest {
+ "transport=obfs4 ip=4 blocklist=ru\n";
private static final String BRIDGE1 = "@type bridge-server-descriptor 1.2\n"
+ "router DockerObfs4Bridge 10.136.176.127 50451 0 0\n"
+ "master-key-ed25519 J6M6MmuZ2joRKaihSB1LDym+WiuUeId8+9nvtI1Sd1M\n"
+ "platform Tor 0.4.6.10 on Linux\n"
+ "proto Cons=1-2 Desc=1-2 DirCache=2 FlowCtrl=1 HSDir=2 HSIntro=4-5 "
+ "HSRend=1-2 Link=1-5 LinkAuth=1,3 Microdesc=1-2 Padding=2 Relay=1-3\n"
+ "published 2022-03-17 08:07:11\n"
+ "fingerprint 6306 C870 BE74 15EB 7167 ED2E 9C12 24F2 8B7E 6C61\n"
+ "uptime 113883\n"
+ "bandwidth 1073741824 1073741824 81352\n"
+ "extra-info-digest 29ECA238A04F0D00E941B2CC430393604430B7D4 "
+ "X0jHhL7ygWblKzjoTGMG4Eikz8Sqo2X9eIbrKzVANNw\n"
+ "hidden-service-dir\n"
+ "contact somebody\n"
+ "bridge-distribution-request any\n"
+ "ntor-onion-key kysCjXGfMAx6AdejV2r34d59atkXFkvLNT/9ADcd73M\n"
+ "reject *:*\n"
+ "tunnelled-dir-server\n"
+ "router-digest-sha256 t+rUo6bm75/Qywapm5TTTnY2HGmxZqFAI1/ON2IxNP4\n"
+ "router-digest 78E7EDA527387064BB4410FC8BAED6DA0902BFE3\n";
+ "router DockerObfs4Bridge 10.136.176.127 50451 0 0\n"
+ "master-key-ed25519 J6M6MmuZ2joRKaihSB1LDym+WiuUeId8+9nvtI1Sd1M\n"
+ "platform Tor 0.4.6.10 on Linux\n"
+ "proto Cons=1-2 Desc=1-2 DirCache=2 FlowCtrl=1 HSDir=2 HSIntro=4-5 "
+ "HSRend=1-2 Link=1-5 LinkAuth=1,3 Microdesc=1-2 Padding=2 Relay=1-3\n"
+ "published 2022-03-17 08:07:11\n"
+ "fingerprint 6306 C870 BE74 15EB 7167 ED2E 9C12 24F2 8B7E 6C61\n"
+ "uptime 113883\n"
+ "bandwidth 1073741824 1073741824 81352\n"
+ "extra-info-digest 29ECA238A04F0D00E941B2CC430393604430B7D4 "
+ "X0jHhL7ygWblKzjoTGMG4Eikz8Sqo2X9eIbrKzVANNw\n"
+ "hidden-service-dir\n"
+ "contact somebody\n"
+ "bridge-distribution-request any\n"
+ "ntor-onion-key kysCjXGfMAx6AdejV2r34d59atkXFkvLNT/9ADcd73M\n"
+ "reject *:*\n"
+ "tunnelled-dir-server\n"
+ "router-digest-sha256 t+rUo6bm75/Qywapm5TTTnY2HGmxZqFAI1/ON2IxNP4\n"
+ "router-digest 78E7EDA527387064BB4410FC8BAED6DA0902BFE3\n";
private static final String RELAY1 = "@type server-descriptor 1.0\n"
+ "router impedance 84.201.150.89 443 0 0\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment