diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ecc9094 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch erlang", + "type": "erlang", + "request": "launch", + "cwd": "${workspaceRoot}" + } + ] +} \ No newline at end of file diff --git a/config/sys.config.example b/config/sys.config.example index c8e37d4..5e9e3c6 100644 --- a/config/sys.config.example +++ b/config/sys.config.example @@ -4,14 +4,14 @@ %% see src/mtproto_proxy.app.src for examples. [ %% PUT YOUR CUSTOM SETTINGS BELOW vvvvv - - %% {ports, - %% [#{name => mtp_handler_1, - %% listen_ip => "0.0.0.0", - %% port => 1443, - %% secret => <<"d0d6e111bada5511fcce9584deadbeef">>, - %% tag => <<"dcbe8f1493fa4cd9ab300891c0b5b326">>} - %% ]} + {allowed_protocols, [mtp_fake_tls]}, %%-----yhb Only allow fake-TLS connections with ee/base64-secrets + {ports, + [#{name => mtp_handler_1, + listen_ip => "0.0.0.0", + port => 1443, + secret => <<"44e38d07b3860dbc0bd31370ac0b3df2">>, + tag => <<"2babdb5675cb08376c23013d68c3159d">>} + ]} %% ^^^^^ END ]},