add debug
This commit is contained in:
parent
f6494df5d1
commit
83361ef1b2
@ -396,6 +396,7 @@ handle_cast({policy_request, Sock, {ClientIp, ClientPort}, #sdl_policy_request{c
|
|||||||
State = #state{network_id = NetworkId, endpoints = Endpoints}) ->
|
State = #state{network_id = NetworkId, endpoints = Endpoints}) ->
|
||||||
logger:debug("[sdlan_network] policy_request, src_identity: ~p, dst_identity: ~p, version: ~p", [SrcIdentityId, DstIdentityId, Version]),
|
logger:debug("[sdlan_network] policy_request, src_identity: ~p, dst_identity: ~p, version: ~p", [SrcIdentityId, DstIdentityId, Version]),
|
||||||
|
|
||||||
|
%% 分片逻辑,index必须从0开始
|
||||||
maybe
|
maybe
|
||||||
{ok, #endpoint{client_id = ClientId, session_token = ST}} ?= maps:find(Mac, Endpoints),
|
{ok, #endpoint{client_id = ClientId, session_token = ST}} ?= maps:find(Mac, Endpoints),
|
||||||
PolicyResponse = sdlan_pb:encode_msg(#sdl_policy_response {
|
PolicyResponse = sdlan_pb:encode_msg(#sdl_policy_response {
|
||||||
@ -404,7 +405,7 @@ handle_cast({policy_request, Sock, {ClientIp, ClientPort}, #sdl_policy_request{c
|
|||||||
dst_identity_id = DstIdentityId,
|
dst_identity_id = DstIdentityId,
|
||||||
version = Version,
|
version = Version,
|
||||||
total_num = 1,
|
total_num = 1,
|
||||||
index = 1,
|
index = 0,
|
||||||
rules = <<1, 80:16, 2, 9090:16>>
|
rules = <<1, 80:16, 2, 9090:16>>
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user