Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
tg
Commits
4cc118d7
Commit
4cc118d7
authored
Nov 19, 2014
by
vvaltman
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:vysheng/tg
Conflicts: Makefile.tgl
parents
9c050b0d
f302863a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
README.md
README.md
+1
-0
main.c
main.c
+8
-0
No files found.
README.md
View file @
4cc118d7
...
...
@@ -69,6 +69,7 @@ If using [Homebrew](http://brew.sh/):
brew install libconfig
brew install readline
brew install lua
brew install libevent
export CFLAGS="-I/usr/local/include -I/usr/local/Cellar/readline/6.3.8/include"
export LDFLAGS="-L/usr/local/lib -L/usr/local/Cellar/readline/6.3.8/lib"
./configure && make
...
...
main.c
View file @
4cc118d7
...
...
@@ -29,6 +29,10 @@
#include <termios.h>
#include <unistd.h>
#include <assert.h>
#ifdef __FreeBSD__
#include <sys/socket.h>
#include <netinet/in.h>
#endif
#if (READLINE == GNU)
#include <readline/readline.h>
#else
...
...
@@ -844,7 +848,11 @@ int main (int argc, char **argv) {
running_for_first_time
();
parse_config
();
#ifdef __FreeBSD__
tgl_set_rsa_key
(
TLS
,
"/usr/local/etc/"
PROG_NAME
"/server.pub"
);
#else
tgl_set_rsa_key
(
TLS
,
"/etc/"
PROG_NAME
"/server.pub"
);
#endif
tgl_set_rsa_key
(
TLS
,
"tg-server.pub"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment