Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mtproto_proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mtproto_proxy
Commits
40b1d8da
Unverified
Commit
40b1d8da
authored
Jul 28, 2019
by
Sergey Prokhorov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dead code removed
parent
263b1998
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
+10
-4
Makefile
Makefile
+8
-0
mtp_handler.erl
src/mtp_handler.erl
+1
-3
mtproto_proxy_app.erl
src/mtproto_proxy_app.erl
+1
-1
No files found.
Makefile
View file @
40b1d8da
...
...
@@ -10,6 +10,14 @@ USER:=mtproto-proxy
all
:
config/prod-sys.config config/prod-vm.args
$(REBAR3)
as prod release
.PHONY
:
test
test
:
$(REBAR3)
xref
$(REBAR3)
eunit
$(REBAR3)
ct
$(REBAR3)
proper
-n
50
$(REBAR3)
dialyzer
config/prod-sys.config
:
config/sys.config.example
[
-f
$@
]
&&
diff
$^
$@
||
true
cp
-i
-b
$^
$@
...
...
src/mtp_handler.erl
View file @
40b1d8da
...
...
@@ -281,9 +281,7 @@ handle_upstream_data(Bin, #state{codec = Codec0} = S0) ->
{
ok
,
S2
}
->
{
next
,
S2
,
S2
#state.codec
};
{
incomplete
,
S2
}
->
{
stop
,
S2
,
S2
#state.codec
};
{
error
,
Err
}
->
error
(
Err
)
{
stop
,
S2
,
S2
#state.codec
}
end
end
,
S0
,
Bin
,
Codec0
),
{
ok
,
S
#state
{
codec
=
Codec
}}.
...
...
src/mtproto_proxy_app.erl
View file @
40b1d8da
...
...
@@ -9,7 +9,7 @@
%% Application callbacks
-
export
([
start
/
2
,
prep_stop
/
1
,
stop
/
1
,
config_change
/
3
]).
-
export
([
mtp_listeners
/
0
,
running_ports
/
0
,
start_proxy
/
1
]).
-
export
([
mtp_listeners
/
0
,
running_ports
/
0
,
start_proxy
/
1
,
build_urls
/
4
]).
-
define
(
APP
,
mtproto_proxy
).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment