fix for config basic: do not accept empty peer names

pull/1/head
Michael Peter Christen 12 years ago
parent 24c9bb35f7
commit 99edbf6f14

@ -90,7 +90,7 @@ public class ConfigBasic {
// peer name settings
String peerName = (post == null) ? sb.peers.mySeed().getName() : post.get("peername", "");
if (peerName != null) peerName = peerName.replace(' ', '-');
if (peerName != null && peerName.length() > 0) peerName = peerName.replace(' ', '-');
// port settings
final long port;

Loading…
Cancel
Save