put port and ssl into propertiess
This commit is contained in:
parent
f4709fc871
commit
f7921d2f70
|
@ -1,5 +1,7 @@
|
|||
nick=nickname
|
||||
password=serverpass
|
||||
user=nickname/irc.tilde.chat@ircbot
|
||||
realname=alexlehm
|
||||
realname=Name
|
||||
hostname=bouncerhost
|
||||
port=6697
|
||||
ssl=true
|
||||
|
|
|
@ -37,10 +37,10 @@ public class MainVerticle extends AbstractVerticle {
|
|||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
NetClientOptions options = new NetClientOptions();
|
||||
NetClientOptions options = new NetClientOptions().setSsl(prop.getProperty("ssl","false").equals("true"));
|
||||
NetClient nc = vertx.createNetClient(options);
|
||||
|
||||
nc.connect(6668, prop.getProperty("hostname")).onSuccess(
|
||||
nc.connect(Integer.parseInt(prop.getProperty("port")), prop.getProperty("hostname")).onSuccess(
|
||||
ns -> {
|
||||
log.info("client is connect");
|
||||
netSocket=ns;
|
||||
|
|
Loading…
Reference in New Issue