Git Product home page Git Product logo

hozz's Introduction

Hozz

A Better Way to Manage Your Hosts. Homepage

Features

  • Provide swift switch between different hosts files
  • Automatic update of online hosts
  • Import hosts file by dragging them into the sidebar
  • Export and import hosts files
  • Support hosts sorting through dragging
  • Export hosts file to Surge config file

Known Issues

  • Hosts will not save on sidebar status switch/edit button clicking
  • Wrong window height/width when maximized on Windows
  • Window get ghost shadows sometimes on OS X
  • Get black background on startup on Linux due to graphics issues (Electron#2170), and this will soon disappear
  • If the tray icon does not appears on Linux, you need to install libappindicator1 according to Electron#1347

Development

Requirements:

  • Node.js
  • Gulp

Get the code:

git clone https://github.com/ppoffice/Hozz.git
cd Hozz
npm install

Commands:

  • gulp: Compile, build and copy files to /app
  • gulp clean: Delete the built files, including /app and /build
  • gulp watch: Watch the /src directory and automatically build on file change
  • gulp package: Pack with Electron for releasing(ia32 and x64), need to run gulp clean before this
  • gulp package-uncompressed: Same as the former one but with no file deleted or compressed. This is for some legacy system like Windows 7

Todos

  • Multilanguage support
  • Manifest and hosts sync based on cloud services
  • Better text searching and editing experience

hozz's People

Contributors

desfero avatar ppoffice avatar trazyn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hozz's Issues

[Server2008R2]无法打开

1

问题签名:
问题事件名称: APPCRASH
应用程序名: Hozz.exe
应用程序版本: 0.36.2.0
应用程序时间戳: 567cd902
故障模块名称: Hozz.exe
故障模块版本: 0.36.2.0
故障模块时间戳: 567cd902
异常代码: 80000003
异常偏移: 00000000002c2ca9
OS 版本: 6.1.7601.2.1.0.274.10
区域设置 ID: 2052
其他信息 1: bd98
其他信息 2: bd983ac51b814a0a627d08d906c743dc
其他信息 3: 337a
其他信息 4: 337ad6eee35f9e4fb4942c3412c0b10a

联机阅读隐私声明:
http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0804

如果无法获取联机隐私声明,请脱机阅读我们的隐私声明:
C:\windows\system32\zh-CN\erofflps.txt

请问这个问题可以解决吗?

v0.1.4:无法授予权限

win10 x64家庭版
始终显示没有写入系统hosts的权限,点击授予权限没有反应
以下为日志:
[2017-5-28 16:11:37.910]
Error: ENOENT: no such file or directory, open 'C:\Users\����\AppData\Local\Temp\batch-0.18028832785785198.bat'
at Error (native)
[2017-5-28 16:12:32.639]
Error: ENOENT: no such file or directory, open 'C:\Users\����\AppData\Local\Temp\batch-0.2084602036047727.bat'
at Error (native)
[2017-5-28 16:12:44.1]
Error: ENOENT: no such file or directory, open 'C:\Users\����\AppData\Local\Temp\batch-0.5196671718731523.bat'
at Error (native)
[2017-5-28 16:13:4.144]
Error: ENOENT: no such file or directory, open 'C:\Users\����\AppData\Local\Temp\batch-0.663841022644192.bat'
at Error (native)

最新版在Win10上的问题?

近来0.1.3版在32位Win10上启动时弹出窗口异常缓慢,点击程序设置窗口也是如此,且原有的状态栏图标变成了空白,不知何故?

启动不了,打不开软件界面

win7,32位系统,打不开软件界面。查看任务管理器,有Hozz.exe进程,然后又消失。兼容性与权限都调了,还是没办法启动。请问是需要什么其他支持吗?

讲道理,这个 Node.js 写的程序啊

卡的帧数都不如扫雷。
任务管理器里内存占用 41M,说得过去,可是 CPU 占用一直 0% 并且无法点选任何东西是怎么回事?

后来我发现这个程序怎么用了,就是先激活窗口,点选你想看的 Hosts 标签,然后让这个程序失去焦点,再激活窗口就行了。

Autostart on login

I can start on login through osx but it will open the full window, can we get it to just start the app with the statusbar indicator and nothing else? # @

Repeated Grant permission on Windows 10 x64

Every time I select the "All" rule set I get asked to "Grant Permission". I keep granting permission but it doesn't seem to stop asking. I always launch the app with Admin privileges.

Getting trouble with updating to 0.1.3

OS: Windows 10 x64
Hozz Current Version: 0.1.0
It keeps reminding me to update to the newest 0.1.3, but I just can't download the package via Hozz itself.
Plz upload the latest to BaiduYun or the homepage?

功能建议

  1. 发现在Windows平台下,Hozz的数据文件储存在用户文件夹的.Hozz文件夹下,能否将其存储路径改为Hozz所在的目录下?因为有时切换不同的Windows系统时,总要频繁的导入,感觉不是很方便~

  2. 能否加入一个hosts格式化工具

win10有个bug

点击设置不会显示,要关掉界面才出现settings 然后是检查更新失败说是A JavaScript error occurred in the main process Uncaught Exception : Error : Attempting to call a function in a renderer window that has been closed or released . Function provided here : mainjs : 13 : 3996 . at Browserwindow . ret ( ) CAUser simasami \ Download Hozz win 32x64 、 resources atom asarbrowserVibVP 21 at emit One ( even ts.js : 7713 ) at Browser Windowemit ( events.js : 169 : 7 )

Wildcard support

Any chance for supporting wildcards?

127.0.0.1 *.example.local
127.0.0.1 *.app

Can we disable the autosave when it's needed?

Sometimes I don't want autosave the edit, for example...a simple accident and remove all of my hosts. I'd suggest that add save, undo, redo buttons (Yeah I know Ctrl+Z, but isn't friendly for others).

And also, ask for confirm when deleting a rule.

Nothing happens after clicking on "Grant Permissions"

image

Hi, I am using Hozz on Windows 10, build 16299.371. By default, it doesn't have permissions to write to Hosts file. It shows a warning at the bottom side that and shows an option "Grant Permissions". Clicking that option, ideally, it should open in elevated mode, however it seems that it is not working.

BTW, I am running it with Administrator rights and still playing with it..... :D

Hozz won't recognize multiple host name

version 0.1.3
Hozz won't recognize multiple host name in one line which is a valid host file format
for example
127.0.0.1 localhost loopback
::1 localhost
are both valid, however "127.0.0.1 localhost loopback" line is red as it is not valid.
Thanks if you could help fix it.

Electron 已停止工作

我尝试在一台 win7x64 的PC上运行 Hozz.exe,总是报错 “Electron 已停止工作”, 崩溃报告如下:

Version=1
EventType=APPCRASH
EventTime=131027070828741537
ReportType=2
Consent=1
ReportIdentifier=7a56c893-ec60-11e5-96eb-00235aafb8f2
IntegratorReportIdentifier=7a56c892-ec60-11e5-96eb-00235aafb8f2
Response.type=4
Sig[0].Name=应用程序名
Sig[0].Value=Hozz.exe
Sig[1].Name=应用程序版本
Sig[1].Value=0.36.2.0
Sig[2].Name=应用程序时间戳
Sig[2].Value=567cd902
Sig[3].Name=故障模块名称
Sig[3].Value=Hozz.exe
Sig[4].Name=故障模块版本
Sig[4].Value=0.36.2.0
Sig[5].Name=故障模块时间戳
Sig[5].Value=567cd902
Sig[6].Name=异常代码
Sig[6].Value=80000003
Sig[7].Name=异常偏移
Sig[7].Value=00000000002c2ca9
DynamicSig[1].Name=OS 版本
DynamicSig[1].Value=6.1.7601.2.1.0.256.1
DynamicSig[2].Name=区域设置 ID
DynamicSig[2].Value=2052
DynamicSig[22].Name=其他信息 1
DynamicSig[22].Value=bd98
DynamicSig[23].Name=其他信息 2
DynamicSig[23].Value=bd983ac51b814a0a627d08d906c743dc
DynamicSig[24].Name=其他信息 3
DynamicSig[24].Value=6e58
DynamicSig[25].Name=其他信息 4
DynamicSig[25].Value=6e584908b0dd16e50020ef03ef6e54ea
UI[2]=D:\greenSoft\Hozz-win32-x64\Hozz.exe
UI[3]=Electron 已停止工作
UI[4]=Windows 可以联机检查该问题的解决方案。
UI[5]=联机检查解决方案并关闭该程序
UI[6]=以后联机检查解决方案并关闭程序
UI[7]=关闭程序
LoadedModule[0]=D:\greenSoft\Hozz-win32-x64\Hozz.exe
LoadedModule[1]=G:\Windows\SYSTEM32\ntdll.dll
LoadedModule[2]=G:\Windows\system32\kernel32.dll
LoadedModule[3]=G:\Windows\system32\KERNELBASE.dll
LoadedModule[4]=G:\Windows\system32\ADVAPI32.dll
LoadedModule[5]=G:\Windows\system32\msvcrt.dll
LoadedModule[6]=G:\Windows\SYSTEM32\sechost.dll
LoadedModule[7]=G:\Windows\system32\RPCRT4.dll
LoadedModule[8]=G:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7601.18837_none_fa3b1e3d17594757\COMCTL32.dll
LoadedModule[9]=G:\Windows\system32\GDI32.dll
LoadedModule[10]=G:\Windows\system32\USER32.dll
LoadedModule[11]=G:\Windows\system32\LPK.dll
LoadedModule[12]=G:\Windows\system32\USP10.dll
LoadedModule[13]=G:\Windows\system32\SHLWAPI.dll
LoadedModule[14]=G:\Windows\system32\COMDLG32.dll
LoadedModule[15]=G:\Windows\system32\SHELL32.dll
LoadedModule[16]=G:\Windows\system32\CRYPT32.dll
LoadedModule[17]=G:\Windows\system32\MSASN1.dll
LoadedModule[18]=G:\Windows\system32\d3d11.dll
LoadedModule[19]=G:\Windows\system32\dxgi.dll
LoadedModule[20]=G:\Windows\system32\VERSION.dll
LoadedModule[21]=G:\Windows\system32\dwmapi.dll
LoadedModule[22]=G:\Windows\system32\dbghelp.dll
LoadedModule[23]=G:\Windows\system32\dhcpcsvc.DLL
LoadedModule[24]=G:\Windows\system32\WS2_32.dll
LoadedModule[25]=G:\Windows\system32\NSI.dll
LoadedModule[26]=G:\Windows\system32\IMM32.dll
LoadedModule[27]=G:\Windows\system32\MSCTF.dll
LoadedModule[28]=G:\Windows\system32\IPHLPAPI.DLL
LoadedModule[29]=G:\Windows\system32\WINNSI.DLL
LoadedModule[30]=D:\greenSoft\Hozz-win32-x64\MSVCP120.dll
LoadedModule[31]=D:\greenSoft\Hozz-win32-x64\MSVCR120.dll
LoadedModule[32]=G:\Windows\system32\NETAPI32.dll
LoadedModule[33]=G:\Windows\system32\netutils.dll
LoadedModule[34]=G:\Windows\system32\srvcli.dll
LoadedModule[35]=G:\Windows\system32\wkscli.dll
LoadedModule[36]=D:\greenSoft\Hozz-win32-x64\node.dll
LoadedModule[37]=G:\Windows\system32\PSAPI.DLL
LoadedModule[38]=G:\Windows\system32\USERENV.dll
LoadedModule[39]=G:\Windows\system32\profapi.dll
LoadedModule[40]=G:\Windows\system32\WINMM.dll
LoadedModule[41]=G:\Windows\system32\ole32.dll
LoadedModule[42]=G:\Windows\system32\OLEACC.dll
LoadedModule[43]=G:\Windows\system32\OLEAUT32.dll
LoadedModule[44]=G:\Windows\system32\POWRPROF.dll
LoadedModule[45]=G:\Windows\system32\SETUPAPI.dll
LoadedModule[46]=G:\Windows\system32\CFGMGR32.dll
LoadedModule[47]=G:\Windows\system32\DEVOBJ.dll
LoadedModule[48]=G:\Windows\system32\Secur32.dll
LoadedModule[49]=G:\Windows\system32\SSPICLI.DLL
LoadedModule[50]=G:\Windows\system32\urlmon.dll
LoadedModule[51]=G:\Windows\system32\api-ms-win-downlevel-ole32-l1-1-0.dll
LoadedModule[52]=G:\Windows\system32\api-ms-win-downlevel-shlwapi-l1-1-0.dll
LoadedModule[53]=G:\Windows\system32\api-ms-win-downlevel-advapi32-l1-1-0.dll
LoadedModule[54]=G:\Windows\system32\api-ms-win-downlevel-user32-l1-1-0.dll
LoadedModule[55]=G:\Windows\system32\api-ms-win-downlevel-version-l1-1-0.dll
LoadedModule[56]=G:\Windows\system32\api-ms-win-downlevel-normaliz-l1-1-0.dll
LoadedModule[57]=G:\Windows\system32\normaliz.DLL
LoadedModule[58]=G:\Windows\system32\iertutil.dll
LoadedModule[59]=G:\Windows\system32\WININET.dll
LoadedModule[60]=G:\Windows\system32\WINHTTP.dll
LoadedModule[61]=G:\Windows\system32\webio.dll
LoadedModule[62]=G:\Windows\system32\WINSPOOL.DRV
LoadedModule[63]=G:\Windows\system32\WTSAPI32.dll
FriendlyEventName=已停止工作
ConsentKey=APPCRASH
AppName=Electron
AppPath=D:\greenSoft\Hozz-win32-x64\Hozz.exe

Validation bug

A host file supports a line like this
192.168.1.22 domain1.com domain2.com domain3.com

If i use this format in Hozz. The line turnes red.

Permission issue on OS X 10.11.3

Hi,

screen shot 2016-03-05 at 9 44 59 pm

The message that "You don't have permission to write to hosts file", won't go away. When I click on "Grant Permission" button, sometimes nothing happens (message goes away), sometimes I am asked for my password and then the message goes away.

But when I click anywhere, this message pops up.

I have not built from the code, I am using the stable version from website with version number 0.1.2

I have not looked into code at all but I am comfortable, so, let me know if you need any inputs from my end. Will try the latest build from master on my machine tonight.

Love the idea of this app.

Empty window after 'npm start'

@ppoffice, I try to build your app from master branch, but i have only empty window
app

I have following commands flow:

git clone https://github.com/ppoffice/Hozz.git
cd Hozz
npm install
gulp
npm start 

Did you have similar bug?

建议实现互斥

可以为每组hosts打标签,相同标签的各组互斥,这样启用一组,同一标签的其它组自动失效,环境比较多的时候很有用。否则还不如写个脚本方便。

Copy/Paste not possible

It would be easy to allow pasting into a host file.
Manually writing IP addresses can be challenging.

The main program isn't executable on Linux by default

I have to use chmod to set it as executable after I download the package from here (Linux x64 version) and extracted the .tar.gz package:

kevin@Arch ~/D/Hozz-linux-x64> ls
content_shell.pak  Hozz  icudtl.dat  libgcrypt.so.11  libnode.so  locales/  natives_blob.bin  resources/
kevin@Arch ~/D/Hozz-linux-x64> chmod 755 Hozz

怎么样不让Hozz更新host文件?

每次打开Hozz,都会用Hozz老的host配置自动替换掉电脑已有的host,但是电脑里面的host确实最新的,怎样让hozz打开,用电脑的host替换hozz内的host配置?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.