if not showing paths, downgrade to version 1

java-i2p-warning
Zlatin Balevsky 2022-08-28 15:37:52 +01:00
parent c8ada0124d
commit 01fd58b2ff
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 3 additions and 0 deletions

View File

@ -446,6 +446,9 @@ class ConnectionAcceptor {
boolean showPaths = settings.showPaths &&
headers.containsKey('Path') &&
Boolean.parseBoolean(headers['Path'])
if (!showPaths)
version = 1
boolean chat = chatServer.isRunning() && settings.advertiseChat
os.write("Chat: ${chat}\r\n".getBytes(StandardCharsets.US_ASCII))