diff --git a/Makefile b/Makefile index 08f6e92..9cfe3ed 100644 --- a/Makefile +++ b/Makefile @@ -48,7 +48,7 @@ $(TARGET).1: $(TARGET).1.md @sed "s/{VERSION}/$(VERSION)/g" $(TARGET).1.md | pandoc -s -t man -o $@ ADDR = 127.0.0.1 -PORT = 8888 +PORT = 9999 cgi: cgi/feuille.cgi diff --git a/README.md b/README.md index 7c4e4bf..b2b81ad 100644 --- a/README.md +++ b/README.md @@ -50,11 +50,11 @@ logs like this: ```console // sending text -$ echo Hello, World! | nc heimdall.pm 8888 +$ echo Hello, World! | nc heimdall.pm 9999 https://bin.heimdall.pm/abcd // sending files -$ cat feuille.c | nc heimdall.pm 8888 +$ cat feuille.c | nc heimdall.pm 9999 https://bin.heimdall.pm/efgh ``` @@ -80,7 +80,7 @@ You'll need `gpg` for this. `-c` means encryption using a password, ```console $ cat secret.txt | gpg -cao tmp.pgp -$ cat tmp.pgp | nc heimdall.pm 8888 +$ cat tmp.pgp | nc heimdall.pm 9999 https://bin.heimdall.pm/ijkl ``` @@ -99,8 +99,8 @@ Guess what? We made aliases! Put those into your `~/.{ba,z,k}shrc`: ```sh -alias pst="nc heimdall.pm 8888" -alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 8888 && rm tmp.pgp" +alias pst="nc heimdall.pm 9999" +alias spst="gpg -cao tmp.pgp && cat tmp.pgp | nc heimdall.pm 9999 && rm tmp.pgp" ``` Now, you can use **feuille** like this: diff --git a/feuille.1 b/feuille.1 index 143f680..94e5de7 100644 --- a/feuille.1 +++ b/feuille.1 @@ -59,7 +59,7 @@ Default: \f[V]4\f[R] (Maximum: \f[V]254\f[R]) .TP \f[B]-p port\f[R] Sets the port that \f[B]feuille\f[R] will listen on. -Default: \f[V]8888\f[R] +Default: \f[V]9999\f[R] .TP \f[B]-o path\f[R] Sets the path where \f[B]feuille\f[R] will output the pastes (and diff --git a/feuille.1.md b/feuille.1.md index bc626f1..30ae356 100644 --- a/feuille.1.md +++ b/feuille.1.md @@ -44,7 +44,7 @@ and IPv6 addresses (won't work on OpenBSD). **-p port** : Sets the port that **feuille** will listen on. -: Default: `8888` +: Default: `9999` **-o path** : Sets the path where **feuille** will output the pastes (and chroot, diff --git a/feuille.c b/feuille.c index cbc4e04..cf3ed3e 100644 --- a/feuille.c +++ b/feuille.c @@ -44,7 +44,7 @@ Settings settings = { .id_length = 4, .worker_count = 1, - .port = 8888, + .port = 9999, .timeout = 4, .max_size = 2097152, /* = 2MiB = 1024 * 1024 * 2 */ .buffer_size = 131072, /* = 128KiB = 1024 * 128 */ diff --git a/misc/aliases b/misc/aliases index f94cacc..eddcdcf 100644 --- a/misc/aliases +++ b/misc/aliases @@ -1,5 +1,5 @@ NC="nc" BIN="heimdall.pm" -alias pst="$NC $BIN 8888" -alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 8888 && rm /tmp/paste.pgp" +alias pst="$NC $BIN 9999" +alias spst="gpg -cao /tmp/paste.pgp && cat /tmp/paste.pgp | $NC $BIN 9999 && rm /tmp/paste.pgp"