Skip to content

Commit efdad4f

Browse files
committed
Add FS_TCP_ENABLED to server features
1 parent a41ab9f commit efdad4f

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/server.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ void CServer::OnCLReqServerFeatures ( CHostAddress RecHostAddr )
532532
// Licence agreement required? (argument -L)
533533
iFeatures |= ( ( eLicenceType != LT_NO_LICENCE ) << FS_HAS_LICENCE );
534534

535+
// TCP enabled? (argument --enabletcp)
536+
iFeatures |= ( bEnableTcp << FS_TCP_ENABLED );
537+
535538
// TODO:
536539
// Running a GUI? (argument -n disables the GUI)
537540
// iFeatures |= ( << FS_HAS_GUI );

src/util.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,8 @@ enum EFeatureSet
633633
FS_IS_LOGGING = 9,
634634
FS_HAS_LICENCE = 10,
635635
FS_HAS_GUI = 11,
636-
FS_RPC_ENABLED = 12
636+
FS_RPC_ENABLED = 12,
637+
FS_TCP_ENABLED = 13
637638
};
638639

639640
inline QString DirectoryTypeToString ( EDirectoryType eAddrType )

0 commit comments

Comments
 (0)