Exemple #1
0
        /// <summary>
        /// Shows a list of usernames in the console.
        /// </summary>
        private void ShowUsers()
        {
            var names = _proxy.GetUserNames();

            if (names.Count == 0)
            {
                Console.WriteLine("There are no users in the user list.");
            }
            else
            {
                Console.WriteLine("The following {0} users are allowed to use the SOCKS5 proxy:", names.Count);
                Console.WriteLine(string.Join(", ", names));
            }
        }