瀏覽代碼

Move Blacklist parameters out of the class

No need to expose these, so keep them internal to the implementation,
like most settings are.
tags/v1.9.90
Pierre Ossman 5 年之前
父節點
當前提交
8e9e154db7
共有 2 個檔案被更改,包括 10 行新增11 行删除
  1. 10
    8
      common/rfb/Blacklist.cxx
  2. 0
    3
      common/rfb/Blacklist.h

+ 10
- 8
common/rfb/Blacklist.cxx 查看文件

@@ -20,14 +20,16 @@

using namespace rfb;

IntParameter Blacklist::threshold("BlacklistThreshold",
"The number of unauthenticated connection attempts allowed from any "
"individual host before that host is black-listed",
5);
IntParameter Blacklist::initialTimeout("BlacklistTimeout",
"The initial timeout applied when a host is first black-listed. "
"The host cannot re-attempt a connection until the timeout expires.",
10);
IntParameter threshold("BlacklistThreshold",
"The number of unauthenticated connection attempts "
"allowed from any individual host before that host "
"is black-listed",
5);
IntParameter initialTimeout("BlacklistTimeout",
"The initial timeout applied when a host is "
"first black-listed. The host cannot re-attempt "
"a connection until the timeout expires.",
10);


Blacklist::Blacklist() {

+ 0
- 3
common/rfb/Blacklist.h 查看文件

@@ -67,9 +67,6 @@ namespace rfb {
bool isBlackmarked(const char* name);
void clearBlackmark(const char* name);

static IntParameter threshold;
static IntParameter initialTimeout;

protected:
struct ltStr {
bool operator()(const char* s1, const char* s2) const {

Loading…
取消
儲存