Commit e3dde63b1bf62b9a9e7dada90b58794497929b6a
Add debug log for any facade traffic
Andre Staltz committed on 2/27/2017, 2:06:08 PMParent: d0bcda9da81cccd37b2ce7fa22ab8b42ff721cfb
Files changed
src/index.ts | changed |
src/index.ts | ||
---|---|---|
@@ -132,8 +132,9 @@ | ||
132 | 132 … | |
133 | 133 … | // Facade redirection server =================================================== |
134 | 134 … | function isHTTPTraffic(data) { |
135 | 135 … | const str = data.toString('ascii'); |
136 … | + debug('Facade traffic: "%s"', str); | |
136 | 137 … | return /^.*HTTP[^\n]*\n/g.exec(str); |
137 | 138 … | }; |
138 | 139 … | |
139 | 140 … | function isSwarmTraffic(data) { |
Built with git-ssb-web