Commit af400ab6 authored by vkuzkokov's avatar vkuzkokov Committed by Commit bot

DevTools: Fixed range of ports available for tethering

1024 is the first port that doesn't require priveleged access and 32767 is the last port that isn't used as ephemeral.

BUG=409658

Review URL: https://codereview.chromium.org/529913003

Cr-Commit-Position: refs/heads/master@{#292912}
parent 727c393d
...@@ -35,8 +35,8 @@ const char kLocalhost[] = "127.0.0.1"; ...@@ -35,8 +35,8 @@ const char kLocalhost[] = "127.0.0.1";
const int kListenBacklog = 5; const int kListenBacklog = 5;
const int kBufferSize = 16 * 1024; const int kBufferSize = 16 * 1024;
const int kMinTetheringPort = 5000; const int kMinTetheringPort = 1024;
const int kMaxTetheringPort = 10000; const int kMaxTetheringPort = 32767;
class SocketPump : public net::StreamListenSocket::Delegate { class SocketPump : public net::StreamListenSocket::Delegate {
public: public:
......
Markdown is supported
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