Merge pull request #3220 from spjspj/master

Fill in missing str
This commit is contained in:
spjspj 2017-04-23 23:48:55 +10:00 committed by GitHub
commit ab74433322

View file

@ -32,6 +32,7 @@ import java.awt.event.*;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.InputStream;
import java.net.SocketException;
import java.util.*;
import java.util.List;
import java.util.concurrent.Executors;
@ -726,6 +727,12 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
currentConnection.setPassword(password);
currentConnection.setHost(server);
currentConnection.setPort(port);
String allMAC = "";
try {
allMAC = currentConnection.getMAC();
} catch (SocketException ex) {
}
currentConnection.setUserIdStr(System.getProperty("user.name") + ":" + System.getProperty("os.name") + ":" + MagePreferences.getUserNames() + ":" + allMAC);
currentConnection.setProxyType(proxyType);
currentConnection.setProxyHost(proxyServer);
currentConnection.setProxyPort(proxyPort);