Update InternetCard.scala

This commit is contained in:
Vexatos 2014-12-02 21:18:13 +01:00
parent 6ec65509e0
commit 4199f12124

View File

@ -64,7 +64,7 @@ class InternetCard extends prefab.ManagedEnvironment {
}
@Callback(direct = true, doc = """function():boolean -- Returns whether TCP connections can be made (config setting).""")
def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.httpEnabled)
def isTcpEnabled(context: Context, args: Arguments): Array[AnyRef] = result(Settings.get.tcpEnabled)
@Callback(doc = """function(address:string[, port:number]):number -- Opens a new TCP connection. Returns the handle of the connection.""")
def connect(context: Context, args: Arguments): Array[AnyRef] = this.synchronized {
@ -376,4 +376,4 @@ object InternetCard {
}
}
}
}