Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

Commit

Permalink
Fixes XFR hostnames containing '-' causing IOExceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
delthas committed Jul 31, 2016
1 parent cfe9457 commit 4d410e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/delthas/skype/NotifConnector.java
Expand Up @@ -54,7 +54,7 @@ public String toString() {
private static final int DEFAULT_SERVER_PORT = 443;
private static final Pattern patternFirstLine = Pattern.compile("([A-Z]+|\\d+) \\d+ ([A-Z]+(?:\\\\[A-Z]+)?) (\\d+)");
private static final Pattern patternHeaders = Pattern.compile("\\A(?:(?:Set-Registration: (.+)|[A-Za-z\\-]+: .+)\\R)*\\R");
private static final Pattern patternXFR = Pattern.compile("([a-zA-Z0-9\\.]+):(\\d+)");
private static final Pattern patternXFR = Pattern.compile("([a-zA-Z0-9\\.\\-]+):(\\d+)");
private static final long pingInterval = 30 * 1000000000L; // seconds
private long lastMessageSentTime;
private Thread pingThread;
Expand Down

0 comments on commit 4d410e2

Please sign in to comment.