aboutsummaryrefslogtreecommitdiffstats
path: root/src/luasocket
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2022-01-02 15:46:46 -0800
committerKartik K. Agaram <vc@akkartik.com>2022-01-02 15:46:46 -0800
commitdf5cd416379e381b143b2aa3941a03a02cc8f84c (patch)
tree0b9d7576922855f56345ac61d517f2ab56ed2205 /src/luasocket
parentf7b44134945fb46bf59ddfd4fe0d3d2778f29354 (diff)
downloadteliva-df5cd416379e381b143b2aa3941a03a02cc8f84c.tar.gz
rename
Diffstat (limited to 'src/luasocket')
-rw-r--r--src/luasocket/usocket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luasocket/usocket.c b/src/luasocket/usocket.c
index 2fb77a1..d743130 100644
--- a/src/luasocket/usocket.c
+++ b/src/luasocket/usocket.c
@@ -132,7 +132,7 @@ int socket_create(p_socket ps, int domain, int type, int protocol) {
\*-------------------------------------------------------------------------*/
int socket_bind(p_socket ps, SA *addr, socklen_t len) {
int err = IO_DONE;
- if (!net_operations_allowed) {
+ if (!net_operations_permitted) {
Previous_message = "app tried to start a server; adjust its permissions (ctrl-p) if that is expected";
return IO_CLOSED;
}
@@ -165,7 +165,7 @@ int socket_connect(p_socket ps, SA *addr, socklen_t len, p_timeout tm) {
int err;
/* avoid calling on closed sockets */
if (*ps == SOCKET_INVALID) return IO_CLOSED;
- if (!net_operations_allowed) {
+ if (!net_operations_permitted) {
Previous_message = "app tried to connect to a remote server; adjust its permissions (ctrl-p) if that is expected";
return IO_CLOSED;
}