File: 0003-failover-need-set-port.patch

package info (click to toggle)
simple-obfs 0.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 728 kB
  • sloc: ansic: 6,534; makefile: 93; sh: 62
file content (28 lines) | stat: -rw-r--r-- 1,177 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: ipcjs <gipcjs@gmail.com>
Date: Tue, 20 Mar 2018 00:59:28 +0800
Subject: failover need set port

(cherry picked from commit f4e03d9cc27340c13bf85c4fa9e145ffd2a9daa6)
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index e8bb724..759ff0a 100644
--- a/README.md
+++ b/README.md
@@ -70,11 +70,11 @@ Only applicable on the server:
 
 ```bash
 # HTTP only with plugin mode
-ss-server -c config.json --plugin obfs-server --plugin-opts "obfs=http;failover=example.com"
+ss-server -c config.json --plugin obfs-server --plugin-opts "obfs=http;failover=example.com:80"
 
 # Both HTTP and HTTPS with standalone mode
-obfs-server -s server_ip -p 80 --obfs http -r 127.0.0.1:8388 --failover example.com
-obfs-server -s server_ip -p 443 --obfs tls -r 127.0.0.1:8388 --failover example.com
+obfs-server -s server_ip -p 80 --obfs http -r 127.0.0.1:8388 --failover example.com:80
+obfs-server -s server_ip -p 443 --obfs tls -r 127.0.0.1:8388 --failover example.com:443
 
 # suppose you have an HTTP webserver (apache/nginx/whatever) listening on localhost:8080 and HTTPS on 8443
 # (you probably shouldn't expose these ports)