mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-06-06 20:39:41 +00:00
Minor fix
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
__version__ = '1.0.4'
|
||||
__version__ = '1.0.5'
|
||||
|
||||
|
||||
import os
|
||||
|
||||
@@ -65,7 +65,7 @@ class TermWebSocket(Route, tornado.websocket.WebSocketHandler):
|
||||
self.log.warning('chdir failed', exc_info=True)
|
||||
|
||||
env = os.environ
|
||||
if self.is_local:
|
||||
if self.is_local and os.getuid() == 0:
|
||||
try:
|
||||
env = self.socket_opener_environ
|
||||
except:
|
||||
|
||||
Reference in New Issue
Block a user