warvair / peerblock

Automatically exported from code.google.com/p/peerblock
Other
0 stars 1 forks source link

Need an option to not always start PeerBlock as Enabled #363

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load program
2.
3.

What is the expected output? What do you see instead?
Previously Peerblock would retain the same disabled/enabled status as the 
program had on last run; now it automatically enables on run.

What version of PeerBlock are you using? On what operating system? 32- or
64-bit? 1.1 r512, using 64-bit Windows 7 Ultimate

Please provide any additional information below.  Make sure to attach
peerblock.log and/or any screenshots that would help explain your problem.

Peerblock.log provided:

Logging Started...
[11/24/2010] [09:01:03.658] [01116]  PeerBlock Starting
[11/24/2010] [09:01:03.658] [01116]  PeerBlock 1.1
[11/24/2010] [09:01:03.658] [01116]  Flushed tracelog
[11/24/2010] [09:01:03.658] [01116]  Running on OS: Windows 7 64-bit - 
Build:[7600], SP:[0.0]
[11/24/2010] [09:01:03.658] [01116]  User running as Admin
[11/24/2010] [09:01:03.658] [01116]  Created program mutex
[11/24/2010] [09:01:03.658] [01116]  Initialized common controls
[11/24/2010] [09:01:03.658] [01116]  Registered color picker
[11/24/2010] [09:01:03.658] [01116]  Initialized winsock
[11/24/2010] [09:01:03.658] [01116]  Successfully 
PreventSetUnhandledExceptionFilter()
[11/24/2010] [09:01:03.658] [01116]  Creating main UI window
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [Main_OnInitDialog]  > Entering 
routine.
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [Main_OnInitDialog]    loading 
config
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]  > Entering routine.
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [LoadFile]    loading 
file:[C:\Program Files\PeerBlock\peerblock.conf]
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [LoadFile]    about to 
memory-map file - size: [5127]
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [LoadFile]    Successfully 
loaded file:[C:\Program Files\PeerBlock\peerblock.conf]
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    Loaded 
configuration file [C:\Program Files\PeerBlock\peerblock.conf]
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    found peerblock 
configuration file
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
root element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
settings element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
logging element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
tracelogging element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
colors element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
windowing element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
updates element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
messages element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
ports element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]    parsing config 
lists element
[11/24/2010] [09:01:03.674] [01116]  [Configuration] [Load]  < Leaving routine.
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [Main_OnInitDialog]    Config 
loaded.
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [Main_OnInitDialog]    checking 
if previous-release updates are required
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [PerformPrevRelUpdates]    no 
version change, so no updates to perform
[11/24/2010] [09:01:03.674] [01116]  [mainproc] [Main_OnInitDialog]    
resetting g_filter
[11/24/2010] [09:01:03.674] [01116]  [driver] [load(2)]    preparing to load 
driver - name: [pbfilter], file: [\??\C:\Program Files\PeerBlock\pbfilter.sys]
[11/24/2010] [09:01:03.674] [01116]  [driver] [load(3)]    loading driver - 
name: [pbfilter], file: [\??\C:\Program Files\PeerBlock\pbfilter.sys], devfile: 
[\\.\pbfilter]
[11/24/2010] [09:01:03.892] [01116]  [driver] [load(3)]    driver-service not 
running
[11/24/2010] [09:01:03.892] [01116]  [driver] [load(3)]    - service state: [1]
[11/24/2010] [09:01:03.892] [01116]  [driver] [start]    starting driver
[11/24/2010] [09:01:03.908] [01116]  [driver] [start]    getting handle to 
driver - devfile: [\\.\pbfilter]
[11/24/2010] [09:01:03.908] [01116]  [driver] [start]    started driver
[11/24/2010] [09:01:03.908] [01116]  [pbfilter_base] [start_thread]    creating 
thread_thunk
[11/24/2010] [09:01:03.908] [01116]  [mainproc] [Main_OnInitDialog]    g_filter 
reset.
[11/24/2010] [09:01:03.908] [01116]  [mainproc] [Main_OnInitDialog]    getting 
tabs
[11/24/2010] [09:01:03.939] [01116]  [LogProc] [Log_OnInitDialog]    updating 
status
[11/24/2010] [09:01:03.986] [01116]  [mainproc] [Main_OnInitDialog]    setting 
block, forcing to Enabled
[11/24/2010] [09:01:03.986] [01116]  [mainproc] [SetBlock]   setting PeerBlock 
blocking from [1] to [1]
[11/24/2010] [09:01:03.986] [01116]  [pbfilter_base] [setblock]    acquiring 
lock
[11/24/2010] [09:01:03.986] [01116]  [pbfilter_base] [setblock]    resetting 
m_block to: [true]
[11/24/2010] [09:01:03.986] [01116]  [pbfilter_base] [setblock]    sending 
block request to driver...
[11/24/2010] [09:01:03.986] [01116]  [pbfilter_base] [setblock]    ...block 
request sent
[11/24/2010] [09:01:03.986] [01116]  [pbfilter_base] [setblock]    mutex 
leaving scope; releasing lock
[11/24/2010] [09:01:03.986] [01116]  [mainproc] [Main_OnInitDialog]    setting 
HTTP block
[11/24/2010] [09:01:04.001] [01116]  [pbfilter_base] [setports]  > Entering 
routine.
[11/24/2010] [09:01:04.001] [01116]  [pbfilter_base] [setports]    finished 
parsing ports
[11/24/2010] [09:01:04.001] [01116]  [pbfilter_base] [setports]  < Leaving 
Routine.
[11/24/2010] [09:01:04.001] [01116]  [mainproc] [Main_OnInitDialog]    loading 
lists
[11/24/2010] [09:01:04.001] [01116]  [LoadLists]  > Entering routine.
[11/24/2010] [09:01:04.001] [01116]  [LoadLists]    generating cache
[11/24/2010] [09:01:04.001] [01116]  [GenCache]  > Entering routine.
[11/24/2010] [09:01:04.001] [01116]  [GenCache]  < Leaving routine (false).
[11/24/2010] [09:01:04.001] [01116]  [LoadLists]    loading lists
[11/24/2010] [09:01:04.610] [01116]  [LoadLists]    performing random setup
[11/24/2010] [09:01:04.672] [01116]  [LoadLists]    setting up filter-driver 
ranges
[11/24/2010] [09:01:05.078] [01116]  [LoadLists]    driver ranges set
[11/24/2010] [09:01:05.078] [01116]  [LoadLists]  < Exiting routine.
[11/24/2010] [09:01:05.093] [01116]  [mainproc] [Main_OnInitDialog]    Lists 
loaded.
[11/24/2010] [09:01:05.093] [01116]  [mainproc] [Main_OnInitDialog]    doing 
other stuff
[11/24/2010] [09:01:05.109] [01116]  [mainproc] [Main_OnInitDialog]    updating 
at startup
[11/24/2010] [09:01:05.109] [01116]  [UpdateLists]  > Entering routine.
[11/24/2010] [09:01:05.109] [01116]  [UpdateLists]    g_updater null, found 
parent, creating dialog-box
[11/24/2010] [09:01:05.109] [01116]  [UpdateLists_OnInitDialog]  > Entering 
routine.
[11/24/2010] [09:01:05.109] [01116]  [UpdateLists_OnInitDialog]    spawning 
updatethread
[11/24/2010] [09:01:05.109] [01116]  [UpdateThread] [UpdateThread]    created 
thread class
[11/24/2010] [09:01:05.109] [01116]  [UpdateThread] [UpdateThread]    destroyed 
thread class
[11/24/2010] [09:01:05.109] [01116]  [UpdateLists_OnInitDialog]  < Leaving 
routine.
[11/24/2010] [09:01:05.109] [03888]  [UpdateThread] [_Process]    updating 
peerblock
[11/24/2010] [09:01:05.109] [03888]  [UpdateThread] [_Process]    update 
url:[http://update.peerblock.com/pb_update.php?build=41011060518]
[11/24/2010] [09:01:05.109] [03888]  [UpdateThread] [_Process]    homepage 
url:[http://update.peerblock.com/latest-release]
[11/24/2010] [09:01:05.109] [03888]  [UpdateThread] [_Process]    agent 
string:[PeerBlock/1.1.0.518]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    updating 
dynamic lists
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    updating 
file:[C:\Program Files\PeerBlock\lists\1961091289.list] from 
url:[http://list.iblocklist.com/lists/bluetack/level-1]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + 26020 (of 
43200) seconds have passed since last update
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + file exists
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [GetFileSize]    file: 
[C:\Program Files\PeerBlock\lists\1961091289.list]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + fileSize = 
2686126
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    not updating 
list; setting progress-bar to 100
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    updating 
file:[C:\Program Files\PeerBlock\lists\1607381786.list] from 
url:[http://list.iblocklist.com/lists/bluetack/level-2]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + 26029 (of 
43200) seconds have passed since last update
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + file exists
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [GetFileSize]    file: 
[C:\Program Files\PeerBlock\lists\1607381786.list]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + fileSize = 
1004407
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    not updating 
list; setting progress-bar to 100
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    updating 
file:[C:\Program Files\PeerBlock\lists\1188397659.list] from 
url:[http://list.iblocklist.com/lists/bluetack/level-3]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + 26035 (of 
43200) seconds have passed since last update
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + file exists
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [GetFileSize]    file: 
[C:\Program Files\PeerBlock\lists\1188397659.list]
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    + fileSize = 
213542
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    not updating 
list; setting progress-bar to 100
[11/24/2010] [09:01:05.125] [03888]  [UpdateThread] [_Process]    performing 
updates
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    response 
code: [200]
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    successfully 
contacted URL; code:[200]
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    found list 
var; no new program version found
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    performing 
cleanup
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    Done updating.
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    finished 
downloading updates
[11/24/2010] [09:01:07.699] [03888]  [UpdateThread] [_Process]    starting 
countdown, since UpdateCountdown > 0
[11/24/2010] [09:01:08.713] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:08.713] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:09.727] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:09.727] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:10.741] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:10.741] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:11.755] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:11.755] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:12.769] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:12.769] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:13.783] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:13.783] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:14.797] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:14.797] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:14.906] [02480]  [LogFilterAction] [operator()]    Stopping 
default Allowed Packet logging
[11/24/2010] [09:01:15.811] [01116]  [UpdateLists_OnTimer]  > Entering routine.
[11/24/2010] [09:01:15.811] [01116]  [UpdateLists_OnTimer]  < Leaving routine.
[11/24/2010] [09:01:16.201] [01116]  [mainproc] [Main_OnCommand]    user 
clicked tray-icon right-click menu 'Disabled' item
[11/24/2010] [09:01:16.201] [01116]  [mainproc] [SetBlock]   setting PeerBlock 
blocking from [1] to [0]
[11/24/2010] [09:01:16.201] [01116]  [pbfilter_base] [setblock]    acquiring 
lock
[11/24/2010] [09:01:16.201] [01116]  [pbfilter_base] [setblock]    resetting 
m_block to: [false]
[11/24/2010] [09:01:16.201] [01116]  [pbfilter_base] [setblock]    sending 
block request to driver...
[11/24/2010] [09:01:16.216] [01116]  [pbfilter_base] [setblock]    ...block 
request sent
[11/24/2010] [09:01:16.216] [01116]  [pbfilter_base] [setblock]    mutex 
leaving scope; releasing lock

Original issue reported on code.google.com by james.ha...@gmail.com on 23 Nov 2010 at 10:21

GoogleCodeExporter commented 8 years ago
Sorry that was v1.1 release 518.

Original comment by james.ha...@gmail.com on 23 Nov 2010 at 10:24

GoogleCodeExporter commented 8 years ago
Yes, many people were complaining that they'd disable PeerBlock then exit it 
(or reboot), and when they would next start PeerBlock (or their machine) 
PeerBlock would be disabled . . . and they'd be unprotected, without realizing 
it.  We determined that "most" users expected PeerBlock to always start up as 
Enabled, but that if they had previously permanently Allowed HTTP they'd expect 
_that_ setting to "stick".  So that's what it now does.

I'd thought we'd put in an "Advanced Option" (meaning you need to hand-edit 
your config file) to override this behavior, but I can't find it.  We'll leave 
this bug open until we do put that in.  Changing the bug-description to more 
accurately describe the intended change here, and targetting for the first 
1.1.x bugfix-release.

Original comment by peerbloc...@gmail.com on 24 Nov 2010 at 5:01