public final class io.netty.handler.proxy.Socks5ProxyHandler extends io.netty.handler.proxy.ProxyHandler
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.proxy.Socks5ProxyHandler
super_class: io.netty.handler.proxy.ProxyHandler
{
private static final java.lang.String PROTOCOL;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "socks5"
private static final java.lang.String AUTH_PASSWORD;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "password"
private static final io.netty.handler.codec.socksx.v5.Socks5InitialRequest INIT_REQUEST_NO_AUTH;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.handler.codec.socksx.v5.Socks5InitialRequest INIT_REQUEST_PASSWORD;
descriptor: Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.lang.String username;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String password;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String decoderName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String encoderName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest
dup
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
invokestatic java.util.Collections.singletonList:(Ljava/lang/Object;)Ljava/util/List;
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest.<init>:(Ljava/lang/Iterable;)V
1: putstatic io.netty.handler.proxy.Socks5ProxyHandler.INIT_REQUEST_NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
2: new io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest
dup
iconst_2
anewarray io.netty.handler.codec.socksx.v5.Socks5AuthMethod
dup
iconst_0
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
aastore
dup
iconst_1
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5InitialRequest.<init>:(Ljava/lang/Iterable;)V
3: putstatic io.netty.handler.proxy.Socks5ProxyHandler.INIT_REQUEST_PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
4: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.SocketAddress);
descriptor: (Ljava/net/SocketAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
aconst_null
invokespecial io.netty.handler.proxy.Socks5ProxyHandler.<init>:(Ljava/net/SocketAddress;Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 2 1 proxyAddress Ljava/net/SocketAddress;
MethodParameters:
Name Flags
proxyAddress
public void <init>(java.net.SocketAddress, java.lang.String, java.lang.String);
descriptor: (Ljava/net/SocketAddress;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokespecial io.netty.handler.proxy.ProxyHandler.<init>:(Ljava/net/SocketAddress;)V
1: aload 2
ifnull 3
aload 2
invokevirtual java.lang.String.isEmpty:()Z
ifeq 3
2: aconst_null
astore 2
3: StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler java.net.SocketAddress java.lang.String java.lang.String
StackMap stack:
aload 3
ifnull 5
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 5
4: aconst_null
astore 3
5: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield io.netty.handler.proxy.Socks5ProxyHandler.username:Ljava/lang/String;
6: aload 0
aload 3
putfield io.netty.handler.proxy.Socks5ProxyHandler.password:Ljava/lang/String;
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 8 1 proxyAddress Ljava/net/SocketAddress;
0 8 2 username Ljava/lang/String;
0 8 3 password Ljava/lang/String;
MethodParameters:
Name Flags
proxyAddress
username
password
public java.lang.String protocol();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "socks5"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
public java.lang.String authScheme();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.socksAuthMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
if_acmpne 1
ldc "password"
goto 2
StackMap locals:
StackMap stack:
1: ldc "none"
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
public java.lang.String username();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.username:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
public java.lang.String password();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.password:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
protected void addCodec(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
astore 3
start local 3 2: new io.netty.handler.codec.socksx.v5.Socks5InitialResponseDecoder
dup
invokespecial io.netty.handler.codec.socksx.v5.Socks5InitialResponseDecoder.<init>:()V
astore 4
start local 4 3: aload 2
aload 3
aconst_null
aload 4
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
4: aload 0
aload 2
aload 4
invokeinterface io.netty.channel.ChannelPipeline.context:(Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelHandlerContext;
invokeinterface io.netty.channel.ChannelHandlerContext.name:()Ljava/lang/String;
putfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
5: aload 0
new java.lang.StringBuilder
dup
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".encoder"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield io.netty.handler.proxy.Socks5ProxyHandler.encoderName:Ljava/lang/String;
6: aload 2
aload 3
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.encoderName:Ljava/lang/String;
getstatic io.netty.handler.codec.socksx.v5.Socks5ClientEncoder.DEFAULT:Lio/netty/handler/codec/socksx/v5/Socks5ClientEncoder;
invokeinterface io.netty.channel.ChannelPipeline.addBefore:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelPipeline;
pop
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 8 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 8 2 p Lio/netty/channel/ChannelPipeline;
2 8 3 name Ljava/lang/String;
3 8 4 decoder Lio/netty/handler/codec/socksx/v5/Socks5InitialResponseDecoder;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected void removeEncoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.encoderName:Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/String;)Lio/netty/channel/ChannelHandler;
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected void removeDecoder(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
astore 2
start local 2 1: aload 2
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.context:(Ljava/lang/String;)Lio/netty/channel/ChannelHandlerContext;
ifnull 3
2: aload 2
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
invokeinterface io.netty.channel.ChannelPipeline.remove:(Ljava/lang/String;)Lio/netty/channel/ChannelHandler;
pop
3: StackMap locals: io.netty.channel.ChannelPipeline
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 4 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 4 2 p Lio/netty/channel/ChannelPipeline;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected java.lang.Object newInitialMessage(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.socksAuthMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
if_acmpne 1
getstatic io.netty.handler.proxy.Socks5ProxyHandler.INIT_REQUEST_PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
goto 2
StackMap locals:
StackMap stack:
1: getstatic io.netty.handler.proxy.Socks5ProxyHandler.INIT_REQUEST_NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5InitialRequest;
StackMap locals:
StackMap stack: io.netty.handler.codec.socksx.v5.Socks5InitialRequest
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 3 1 ctx Lio/netty/channel/ChannelHandlerContext;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
protected boolean handleResponse(io.netty.channel.ChannelHandlerContext, java.lang.Object);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5InitialResponse
ifeq 21
1: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5InitialResponse
astore 3
start local 3 2: aload 0
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.socksAuthMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
astore 4
start local 4 3: aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialResponse.authMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
if_acmpeq 5
aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialResponse.authMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
aload 4
if_acmpeq 5
4: new io.netty.handler.proxy.ProxyConnectException
dup
aload 0
new java.lang.StringBuilder
dup
ldc "unexpected authMethod: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5InitialResponse.authMethod:()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5InitialResponse io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack:
aload 4
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
if_acmpne 8
6: aload 0
aload 1
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.sendConnectCommand:(Lio/netty/channel/ChannelHandlerContext;)V
7: goto 20
StackMap locals:
StackMap stack:
8: aload 4
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
if_acmpne 19
9: aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
new io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponseDecoder
dup
invokespecial io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponseDecoder.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.replace:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelHandler;
pop
10: aload 0
11: new io.netty.handler.codec.socksx.v5.DefaultSocks5PasswordAuthRequest
dup
12: aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.username:Ljava/lang/String;
ifnull 13
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.username:Ljava/lang/String;
goto 14
StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.socksx.v5.Socks5InitialResponse io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack: io.netty.handler.proxy.Socks5ProxyHandler new 11 new 11
13: ldc ""
StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.socksx.v5.Socks5InitialResponse io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack: io.netty.handler.proxy.Socks5ProxyHandler new 11 new 11 java.lang.String
14: aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.password:Ljava/lang/String;
ifnull 15
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.password:Ljava/lang/String;
goto 16
StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.socksx.v5.Socks5InitialResponse io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack: io.netty.handler.proxy.Socks5ProxyHandler new 11 new 11 java.lang.String
15: ldc ""
StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.lang.Object io.netty.handler.codec.socksx.v5.Socks5InitialResponse io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack: io.netty.handler.proxy.Socks5ProxyHandler new 11 new 11 java.lang.String java.lang.String
16: invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5PasswordAuthRequest.<init>:(Ljava/lang/String;Ljava/lang/String;)V
17: invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.sendToProxyServer:(Ljava/lang/Object;)V
18: goto 20
19: StackMap locals:
StackMap stack:
new java.lang.Error
dup
invokespecial java.lang.Error.<init>:()V
athrow
20: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 21: StackMap locals:
StackMap stack:
aload 2
instanceof io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse
ifeq 27
22: aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse
astore 3
start local 3 23: aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthStatus;
getstatic io.netty.handler.codec.socksx.v5.Socks5PasswordAuthStatus.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthStatus;
if_acmpeq 25
24: new io.netty.handler.proxy.ProxyConnectException
dup
aload 0
new java.lang.StringBuilder
dup
ldc "authStatus: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthStatus;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5PasswordAuthResponse
StackMap stack:
aload 0
aload 1
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.sendConnectCommand:(Lio/netty/channel/ChannelHandlerContext;)V
26: iconst_0
ireturn
end local 3 27: StackMap locals:
StackMap stack:
aload 2
checkcast io.netty.handler.codec.socksx.v5.Socks5CommandResponse
astore 3
start local 3 28: aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandStatus.SUCCESS:Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
if_acmpeq 30
29: new io.netty.handler.proxy.ProxyConnectException
dup
aload 0
new java.lang.StringBuilder
dup
ldc "status: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokeinterface io.netty.handler.codec.socksx.v5.Socks5CommandResponse.status:()Lio/netty/handler/codec/socksx/v5/Socks5CommandStatus;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
athrow
30: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5CommandResponse
StackMap stack:
iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 31 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 31 2 response Ljava/lang/Object;
2 21 3 res Lio/netty/handler/codec/socksx/v5/Socks5InitialResponse;
3 21 4 authMethod Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
23 27 3 res Lio/netty/handler/codec/socksx/v5/Socks5PasswordAuthResponse;
28 31 3 res Lio/netty/handler/codec/socksx/v5/Socks5CommandResponse;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
response
private io.netty.handler.codec.socksx.v5.Socks5AuthMethod socksAuthMethod();
descriptor: ()Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.username:Ljava/lang/String;
ifnonnull 3
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.password:Ljava/lang/String;
ifnonnull 3
1: getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.NO_AUTH:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
astore 1
start local 1 2: goto 4
end local 1 3: StackMap locals:
StackMap stack:
getstatic io.netty.handler.codec.socksx.v5.Socks5AuthMethod.PASSWORD:Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
astore 1
start local 1 4: StackMap locals: io.netty.handler.codec.socksx.v5.Socks5AuthMethod
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
2 3 1 authMethod Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
4 5 1 authMethod Lio/netty/handler/codec/socksx/v5/Socks5AuthMethod;
private void sendConnectCommand(io.netty.channel.ChannelHandlerContext);
descriptor: (Lio/netty/channel/ChannelHandlerContext;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.destinationAddress:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
astore 2
start local 2 1: aload 2
invokevirtual java.net.InetSocketAddress.isUnresolved:()Z
ifeq 5
2: getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.DOMAIN:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 3
start local 3 3: aload 2
invokevirtual java.net.InetSocketAddress.getHostString:()Ljava/lang/String;
astore 4
start local 4 4: goto 15
end local 4 end local 3 5: StackMap locals: java.net.InetSocketAddress
StackMap stack:
aload 2
invokevirtual java.net.InetSocketAddress.getAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.getHostAddress:()Ljava/lang/String;
astore 4
start local 4 6: aload 4
invokestatic io.netty.util.NetUtil.isValidIpV4Address:(Ljava/lang/String;)Z
ifeq 9
7: getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv4:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 3
start local 3 8: goto 15
end local 3 StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.net.InetSocketAddress top java.lang.String
StackMap stack:
9: aload 4
invokestatic io.netty.util.NetUtil.isValidIpV6Address:(Ljava/lang/String;)Z
ifeq 12
10: getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv6:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
astore 3
start local 3 11: goto 15
end local 3 12: StackMap locals:
StackMap stack:
new io.netty.handler.proxy.ProxyConnectException
dup
13: aload 0
new java.lang.StringBuilder
dup
ldc "unknown address type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokestatic io.netty.util.internal.StringUtil.simpleClassName:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.exceptionMessage:(Ljava/lang/String;)Ljava/lang/String;
14: invokespecial io.netty.handler.proxy.ProxyConnectException.<init>:(Ljava/lang/String;)V
athrow
start local 3 15: StackMap locals: io.netty.handler.proxy.Socks5ProxyHandler io.netty.channel.ChannelHandlerContext java.net.InetSocketAddress io.netty.handler.codec.socksx.v5.Socks5AddressType java.lang.String
StackMap stack:
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.pipeline:()Lio/netty/channel/ChannelPipeline;
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
aload 0
getfield io.netty.handler.proxy.Socks5ProxyHandler.decoderName:Ljava/lang/String;
new io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder
dup
invokespecial io.netty.handler.codec.socksx.v5.Socks5CommandResponseDecoder.<init>:()V
invokeinterface io.netty.channel.ChannelPipeline.replace:(Ljava/lang/String;Ljava/lang/String;Lio/netty/channel/ChannelHandler;)Lio/netty/channel/ChannelHandler;
pop
16: aload 0
new io.netty.handler.codec.socksx.v5.DefaultSocks5CommandRequest
dup
getstatic io.netty.handler.codec.socksx.v5.Socks5CommandType.CONNECT:Lio/netty/handler/codec/socksx/v5/Socks5CommandType;
aload 3
aload 4
aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
invokespecial io.netty.handler.codec.socksx.v5.DefaultSocks5CommandRequest.<init>:(Lio/netty/handler/codec/socksx/v5/Socks5CommandType;Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;I)V
invokevirtual io.netty.handler.proxy.Socks5ProxyHandler.sendToProxyServer:(Ljava/lang/Object;)V
17: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lio/netty/handler/proxy/Socks5ProxyHandler;
0 18 1 ctx Lio/netty/channel/ChannelHandlerContext;
1 18 2 raddr Ljava/net/InetSocketAddress;
3 5 3 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
8 9 3 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
11 12 3 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
15 18 3 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
4 5 4 rhost Ljava/lang/String;
6 18 4 rhost Ljava/lang/String;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
}
SourceFile: "Socks5ProxyHandler.java"