aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/addr.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-25 19:40:16 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-25 19:40:16 +0000
commit80bb5413db189bee40e39b6572110af565339e03 (patch)
tree5f6e84100feaaa0af729bd899b4f43b57386b029 /src/libutil/addr.h
parenta0b5db928fa1e0a6653d97569ee0485093ac6d72 (diff)
downloadrspamd-80bb5413db189bee40e39b6572110af565339e03.tar.gz
rspamd-80bb5413db189bee40e39b6572110af565339e03.zip
[Fix] Fix listen socket parsing
Issue: #3254
Diffstat (limited to 'src/libutil/addr.h')
-rw-r--r--src/libutil/addr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/addr.h b/src/libutil/addr.h
index c0910ad03..e17a4031c 100644
--- a/src/libutil/addr.h
+++ b/src/libutil/addr.h
@@ -274,7 +274,9 @@ enum rspamd_parse_host_port_result {
enum rspamd_parse_host_port_result
rspamd_parse_host_port_priority (const gchar *str,
GPtrArray **addrs,
- guint *priority, gchar **name, guint default_port,
+ guint *priority, gchar **name,
+ guint default_port,
+ gboolean allow_listen,
rspamd_mempool_t *pool);
/**
background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
APP_NAME = Gitea: Git with a cup of tea
RUN_MODE = prod

[database]
DB_TYPE = sqlite3
PATH    = integrations/gitea-integration-sqlite/gitea.db

[indexer]
ISSUE_INDEXER_PATH   = integrations/indexers-sqlite/issues.bleve
REPO_INDEXER_ENABLED = true
REPO_INDEXER_PATH    = integrations/indexers-sqlite/repos.bleve

[queue.code_indexer]
TYPE = immediate

[queue.push_update]
TYPE = immediate

[repository]
ROOT = {{REPO_TEST_DIR}}integrations/gitea-integration-sqlite/gitea-repositories

[repository.local]
LOCAL_COPY_PATH = tmp/local-repo-sqlite
LOCAL_WIKI_PATH = tmp/local-wiki-sqlite

[repository.signing]
SIGNING_KEY = none

[server]
SSH_DOMAIN       = localhost
HTTP_PORT        = 3003
ROOT_URL         = http://localhost:3003/
DISABLE_SSH      = false
SSH_LISTEN_HOST  = localhost
SSH_PORT         = 2203
START_SSH_SERVER = true
LFS_START_SERVER = true
LFS_CONTENT_PATH = integrations/gitea-integration-sqlite/data
OFFLINE_MODE     = false
LFS_JWT_SECRET   = Tv_MjmZuHqpIY6GFl12ebgkRAMt4RlWt0v4EHKSXO0w
APP_DATA_PATH    = integrations/gitea-integration-sqlite/data
ENABLE_GZIP      = true
BUILTIN_SSH_SERVER_USER = git

[attachment]
PATH = integrations/gitea-integration-sqlite/data

[mailer]
ENABLED     = true
MAILER_TYPE = dummy
FROM        = sqlite-integration-test@gitea.io

[service]
REGISTER_EMAIL_CONFIRM            = false
ENABLE_NOTIFY_MAIL                = true
DISABLE_REGISTRATION              = false
ENABLE_CAPTCHA                    = false
REQUIRE_SIGNIN_VIEW               = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
NO_REPLY_ADDRESS                  = noreply.example.org

[picture]
DISABLE_GRAVATAR              = false
ENABLE_FEDERATED_AVATAR       = false
AVATAR_UPLOAD_PATH            = integrations/gitea-integration-sqlite/data/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = integrations/gitea-integration-sqlite/data/repo-avatars


[session]
PROVIDER = file
PROVIDER_CONFIG = integrations/gitea-integration-sqlite/data/sessions

[log]
MODE                 = test,file
ROOT_PATH            = sqlite-log
REDIRECT_MACARON_LOG = true
ROUTER               = ,
MACARON              = ,
XORM                 = file

[log.test]
LEVEL                = Info
COLORIZE             = true

[log.file]
LEVEL                = Debug

[security]
DISABLE_GIT_HOOKS = false
INSTALL_LOCK   = true
SECRET_KEY     = 9pCviYTWSb
INTERNAL_TOKEN = eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE0OTI3OTU5ODN9.OQkH5UmzID2XBdwQ9TAI6Jj2t1X-wElVTjbE7aoN4I8

[oauth2]
JWT_SECRET = KZb_QLUd4fYVyxetjxC4eZkrBgWM2SndOOWDNtgUUko