From dcc4a516b6178bfb65f76eff9a081caf52e6c4ba Mon Sep 17 00:00:00 2001 From: Soham Roy Date: Wed, 3 Feb 2021 09:49:49 -0600 Subject: [PATCH] Fixed function call bug in client The recursive call to user_to_ip() was mistyped as _user_to_ip() --- 2021sp_cs361s/network_classroom/src/network_classroom/spoke.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2021sp_cs361s/network_classroom/src/network_classroom/spoke.py b/2021sp_cs361s/network_classroom/src/network_classroom/spoke.py index 0f4fa6f3..7012fbc3 100644 --- a/2021sp_cs361s/network_classroom/src/network_classroom/spoke.py +++ b/2021sp_cs361s/network_classroom/src/network_classroom/spoke.py @@ -17,7 +17,7 @@ def user_to_ip(name): b += hash[10+i] ipaddr = "192.168.{}.{}".format(a%256, b%256) if ipaddr in _ip_to_user and _ip_to_user[ipaddr] != name: - return _user_to_ip("_"+name) + return user_to_ip("_"+name) _ip_to_user[ipaddr] = name _user_to_ip[name] = ipaddr return ipaddr